mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 09:00:31 -08:00
(skip_chars): Reinstate check for end of buffer, ignoring cryptic
comment.
This commit is contained in:
parent
0b9bd5040c
commit
d97ca6a1a4
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue