Mercurial > emacs
changeset 18938:444939f3c18f
(Fforward_comment): When count1 is negative, return nil if FROM reaches STOP.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 24 Jul 1997 07:40:26 +0000 |
parents | ddb91108a9d2 |
children | 7415a69ea66e |
files | src/syntax.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);