# HG changeset patch # User Richard M. Stallman # Date 869730026 0 # Node ID 444939f3c18f8e6dcc8f782d364ae904bf274d4f # Parent ddb91108a9d240c588dda2c7528d9b37219784f9 (Fforward_comment): When count1 is negative, return nil if FROM reaches STOP. diff -r ddb91108a9d2 -r 444939f3c18f src/syntax.c --- a/src/syntax.c Thu Jul 24 06:09:23 1997 +0000 +++ b/src/syntax.c Thu Jul 24 07:40:26 1997 +0000 @@ -1507,9 +1507,15 @@ 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);