]> git.eshelyaron.com Git - emacs.git/commitdiff
(skip_chars): Reinstate check for end of buffer, ignoring cryptic
authorBrian Fox <bfox@gnu.org>
Thu, 7 Oct 1993 22:58:57 +0000 (22:58 +0000)
committerBrian Fox <bfox@gnu.org>
Thu, 7 Oct 1993 22:58:57 +0000 (22:58 +0000)
comment.

src/search.c

index 048cdb2efa0befce4e716a3fa6a0c75d44cea905..2127b36f5a0440b6f8319a4353abf7e5bc94a64f 100644 (file)
@@ -416,13 +416,18 @@ skip_chars (forwardp, syntaxp, string, lim)
   else
     CHECK_NUMBER_COERCE_MARKER (lim, 1);
 
-#if 0                          /* This breaks some things... jla. */
   /* In any case, don't allow scan outside bounds of buffer.  */
+
+  /* I don't know what things this breaks, and there is no entry in the
+     ChangeLog, so I reinstated the end of buffer limit check.  This code
+     breaks without it. (bfox) */
+#if 0                          /* This breaks some things... jla. */
   if (XFASTINT (lim) > ZV)
     XFASTINT (lim) = ZV;
+#endif
   if (XFASTINT (lim) < BEGV)
     XFASTINT (lim) = BEGV;
-#endif
+/* #endif */
 
   p = XSTRING (string)->data;
   pend = p + XSTRING (string)->size;