From b9145dbb572314401bdbe4224da7b9f01a7f55a6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 24 Jul 1997 07:40:26 +0000 Subject: [PATCH] (Fforward_comment): When count1 is negative, return nil if FROM reaches STOP. --- src/syntax.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.5