summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-24 07:40:26 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-24 07:40:26 +0000
commitb9145dbb572314401bdbe4224da7b9f01a7f55a6 (patch)
tree623481d4e666a7ac94db5b1eab37b63e945a7690 /src/syntax.c
parentb14dda8a3e4e49d439df9fb4c1f37625a9f39df9 (diff)
downloademacs-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.c8
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);