diff options
| author | Stefan Monnier | 2000-02-17 05:57:38 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-02-17 05:57:38 +0000 |
| commit | 2b927d02c82223c9731b868f0b0c75c36a8c3d4f (patch) | |
| tree | 2ff799b1a72a962e4976a59b1224890e05be5349 /src | |
| parent | 84fe35f0e4753adf6027da81e7427ae371267873 (diff) | |
| download | emacs-2b927d02c82223c9731b868f0b0c75c36a8c3d4f.tar.gz emacs-2b927d02c82223c9731b868f0b0c75c36a8c3d4f.zip | |
(Fforward_comment): Undo the previous change, since cc-mode
depends on the previous behavior.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/syntax.c | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1ca2b1d2585..b9e184fd755 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * syntax.c (Fforward_comment): Undo the previous change, since cc-mode | ||
| 4 | depends on the previous behavior. | ||
| 5 | |||
| 1 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> | 6 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> |
| 2 | 7 | ||
| 3 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. | 8 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. |
diff --git a/src/syntax.c b/src/syntax.c index 43f49dae9cf..c7e60ce1894 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1910,15 +1910,19 @@ between them, return t; otherwise return nil.") | |||
| 1910 | &out_charpos, &out_bytepos); | 1910 | &out_charpos, &out_bytepos); |
| 1911 | if (found == -1) | 1911 | if (found == -1) |
| 1912 | { | 1912 | { |
| 1913 | /* Failure: we have to skip the one or two chars of the | 1913 | #if 0 /* cc-mode (and maybe others) relies on the bogus behavior. */ |
| 1914 | /* Failure: we should go back to the end of this | ||
| 1914 | not-quite-endcomment. */ | 1915 | not-quite-endcomment. */ |
| 1915 | if (SYNTAX(c) != code) | 1916 | if (SYNTAX(c) != code) |
| 1916 | /* It was a two-char Sendcomment. */ | 1917 | /* It was a two-char Sendcomment. */ |
| 1917 | INC_BOTH (from, from_byte); | 1918 | INC_BOTH (from, from_byte); |
| 1918 | goto leave; | 1919 | goto leave; |
| 1920 | #endif | ||
| 1919 | } | 1921 | } |
| 1920 | /* We have skipped one comment. */ | 1922 | else |
| 1921 | from = out_charpos, from_byte = out_bytepos; | 1923 | /* We have skipped one comment. */ |
| 1924 | from = out_charpos, from_byte = out_bytepos; | ||
| 1925 | break; | ||
| 1922 | } | 1926 | } |
| 1923 | else if (code != Swhitespace && code != Scomment) | 1927 | else if (code != Swhitespace && code != Scomment) |
| 1924 | { | 1928 | { |