aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-24 07:40:26 +0000
committerRichard M. Stallman1997-07-24 07:40:26 +0000
commitb9145dbb572314401bdbe4224da7b9f01a7f55a6 (patch)
tree623481d4e666a7ac94db5b1eab37b63e945a7690 /src/syntax.c
parentb14dda8a3e4e49d439df9fb4c1f37625a9f39df9 (diff)
downloademacs-b9145dbb572314401bdbe4224da7b9f01a7f55a6.tar.gz
emacs-b9145dbb572314401bdbe4224da7b9f01a7f55a6.zip
(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.")
1507 1507
1508 while (count1 < 0) 1508 while (count1 < 0)
1509 { 1509 {
1510 while (from > stop) 1510 while (1)
1511 { 1511 {
1512 int quoted; 1512 int quoted;
1513 if (from <= stop)
1514 {
1515 SET_PT (stop);
1516 immediate_quit = 0;
1517 return Qnil;
1518 }
1513 1519
1514 DEC_POS (from); 1520 DEC_POS (from);
1515 quoted = char_quoted (from); 1521 quoted = char_quoted (from);