diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-07-24 07:40:26 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-07-24 07:40:26 +0000 |
commit | b9145dbb572314401bdbe4224da7b9f01a7f55a6 (patch) | |
tree | 623481d4e666a7ac94db5b1eab37b63e945a7690 /src/syntax.c | |
parent | b14dda8a3e4e49d439df9fb4c1f37625a9f39df9 (diff) | |
download | emacs-b9145dbb572314401bdbe4224da7b9f01a7f55a6.tar.gz |
(Fforward_comment): When count1 is negative, return nil if FROM reaches STOP.
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c index df89836d099..371ddedbd74 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1507,9 +1507,15 @@ between them, return t; otherwise return nil.") while (count1 < 0) { - while (from > stop) + while (1) { int quoted; + if (from <= stop) + { + SET_PT (stop); + immediate_quit = 0; + return Qnil; + } DEC_POS (from); quoted = char_quoted (from); |