diff options
| author | Brian Fox | 1993-10-07 22:58:57 +0000 |
|---|---|---|
| committer | Brian Fox | 1993-10-07 22:58:57 +0000 |
| commit | d97ca6a1a41c0aa9eef6d02f334e8d69fffb41cd (patch) | |
| tree | 2355e5951e224fe505f8fad98e7a18f9a1e7b382 /src | |
| parent | 0b9bd5040cff82bde56f1bcc59f60437ffc9a969 (diff) | |
| download | emacs-d97ca6a1a41c0aa9eef6d02f334e8d69fffb41cd.tar.gz emacs-d97ca6a1a41c0aa9eef6d02f334e8d69fffb41cd.zip | |
(skip_chars): Reinstate check for end of buffer, ignoring cryptic
comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/search.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index 048cdb2efa0..2127b36f5a0 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -416,13 +416,18 @@ skip_chars (forwardp, syntaxp, string, lim) | |||
| 416 | else | 416 | else |
| 417 | CHECK_NUMBER_COERCE_MARKER (lim, 1); | 417 | CHECK_NUMBER_COERCE_MARKER (lim, 1); |
| 418 | 418 | ||
| 419 | #if 0 /* This breaks some things... jla. */ | ||
| 420 | /* In any case, don't allow scan outside bounds of buffer. */ | 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) */ | ||
| 424 | #if 0 /* This breaks some things... jla. */ | ||
| 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; |