From: Richard M. Stallman Date: Thu, 24 Jul 1997 07:40:26 +0000 (+0000) Subject: (Fforward_comment): When count1 is negative, return nil if FROM reaches STOP. X-Git-Tag: emacs-20.1~1008 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b9145dbb572314401bdbe4224da7b9f01a7f55a6;p=emacs.git (Fforward_comment): When count1 is negative, return nil if FROM reaches STOP. --- 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);