diff options
| author | Alan Mackenzie | 2016-03-08 17:26:11 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2016-03-08 17:26:11 +0000 |
| commit | f0addfb43026e04ab3452d48fe24f7e7bd0101ce (patch) | |
| tree | 08a1b28e22920fdd079f675f7c2c015d023aa8cc /src | |
| parent | 7272a47df18873f8583e88c88d38b9c21a96fea4 (diff) | |
| download | emacs-f0addfb43026e04ab3452d48fe24f7e7bd0101ce.tar.gz emacs-f0addfb43026e04ab3452d48fe24f7e7bd0101ce.zip | |
Fix two small errors in comment-depth stuff:
* src/syntax.c: (back_comment): Also check for syntax Scomment_fence whilst
verifying comment opener.
(scan_sexps_forward): Remove unused variable `count'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/syntax.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 4a30afa03a0..479308f82c1 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1259,7 +1259,7 @@ back_comment (ptrdiff_t from, ptrdiff_t from_byte, ptrdiff_t stop, | |||
| 1259 | c = FETCH_CHAR_AS_MULTIBYTE (from_byte); | 1259 | c = FETCH_CHAR_AS_MULTIBYTE (from_byte); |
| 1260 | syntax = SYNTAX_WITH_FLAGS (c); | 1260 | syntax = SYNTAX_WITH_FLAGS (c); |
| 1261 | code = SYNTAX (c); | 1261 | code = SYNTAX (c); |
| 1262 | if (code != Scomment) | 1262 | if (code != Scomment && code != Scomment_fence) |
| 1263 | { | 1263 | { |
| 1264 | if (from <= stop) | 1264 | if (from <= stop) |
| 1265 | return false; | 1265 | return false; |
| @@ -3459,7 +3459,6 @@ scan_sexps_forward (struct lisp_parse_state *stateptr, | |||
| 3459 | EMACS_INT targetdepth, bool stopbefore, | 3459 | EMACS_INT targetdepth, bool stopbefore, |
| 3460 | int commentstop) | 3460 | int commentstop) |
| 3461 | { | 3461 | { |
| 3462 | ptrdiff_t count = SPECPDL_INDEX (); | ||
| 3463 | struct lisp_parse_state state; | 3462 | struct lisp_parse_state state; |
| 3464 | enum syntaxcode code; | 3463 | enum syntaxcode code; |
| 3465 | int c1; | 3464 | int c1; |