comparison src/search.c @ 4831:66a523672100

(skip_chars): Reinstate check for end of buffer, ignoring cryptic comment.
author Brian Fox <bfox@gnu.org>
date Thu, 07 Oct 1993 22:58:57 +0000
parents b6697b2a56ca
children 88df989388b9
comparison
equal deleted inserted replaced
4830:a61307ac474e 4831:66a523672100
414 if (NILP (lim)) 414 if (NILP (lim))
415 XSET (lim, Lisp_Int, forwardp ? ZV : BEGV); 415 XSET (lim, Lisp_Int, forwardp ? ZV : BEGV);
416 else 416 else
417 CHECK_NUMBER_COERCE_MARKER (lim, 1); 417 CHECK_NUMBER_COERCE_MARKER (lim, 1);
418 418
419 /* In any case, don't allow scan outside bounds of buffer. */
420
421 /* I don't know what things this breaks, and there is no entry in the
422 ChangeLog, so I reinstated the end of buffer limit check. This code
423 breaks without it. (bfox) */
419 #if 0 /* This breaks some things... jla. */ 424 #if 0 /* This breaks some things... jla. */
420 /* In any case, don't allow scan outside bounds of buffer. */
421 if (XFASTINT (lim) > ZV) 425 if (XFASTINT (lim) > ZV)
422 XFASTINT (lim) = ZV; 426 XFASTINT (lim) = ZV;
427 #endif
423 if (XFASTINT (lim) < BEGV) 428 if (XFASTINT (lim) < BEGV)
424 XFASTINT (lim) = BEGV; 429 XFASTINT (lim) = BEGV;
425 #endif 430 /* #endif */
426 431
427 p = XSTRING (string)->data; 432 p = XSTRING (string)->data;
428 pend = p + XSTRING (string)->size; 433 pend = p + XSTRING (string)->size;
429 bzero (fastmap, sizeof fastmap); 434 bzero (fastmap, sizeof fastmap);
430 435