diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-06-11 02:33:06 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-06-11 02:33:06 +0000 |
commit | 16ced93237b8dd869651dae05d311efdc41b8823 (patch) | |
tree | 62e6751cf6d77aa4e2ccdc0c9410c5874a5ee5e5 | |
parent | b64094813c92c950a4ad9d80945fecfc02542aa6 (diff) | |
download | emacs-16ced93237b8dd869651dae05d311efdc41b8823.tar.gz |
(Fforward_comment): Properly compute BYTEPOS arg to char_quoted.
-rw-r--r-- | src/syntax.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c index b2d14576839..79e278a5093 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1608,7 +1608,6 @@ between them, return t; otherwise return nil.") int comstyle = 0; /* style of comment encountered */ int found; int count1; - int temp_pos; int out_charpos, out_bytepos; CHECK_NUMBER (count, 0); @@ -1734,7 +1733,7 @@ between them, return t; otherwise return nil.") comstart_second = SYNTAX_COMSTART_SECOND (c); if (from > stop && SYNTAX_COMEND_SECOND (c) && prev_char_comend_first (from, from_byte) - && !char_quoted (from - 1, temp_pos)) + && !char_quoted (from - 1, dec_bytepos (from_byte))) { /* We must record the comment style encountered so that later, we can match only the proper comment begin @@ -1747,7 +1746,7 @@ between them, return t; otherwise return nil.") } if (from > stop && comstart_second && prev_char_comstart_first (from, from_byte) - && !char_quoted (from - 1, temp_pos)) + && !char_quoted (from - 1, dec_bytepos (from_byte))) { /* We must record the comment style encountered so that later, we can match only the proper comment begin |