]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix two small errors in comment-depth stuff:
authorAlan Mackenzie <acm@muc.de>
Tue, 8 Mar 2016 17:26:11 +0000 (17:26 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 8 Mar 2016 17:26:11 +0000 (17:26 +0000)
* src/syntax.c: (back_comment): Also check for syntax Scomment_fence whilst
verifying comment opener.
(scan_sexps_forward): Remove unused variable `count'.

src/syntax.c

index 4a30afa03a0b43ce16594b3259f8edf6a55a5c51..479308f82c123bbe36ba09cd4b14053e49dc60c9 100644 (file)
@@ -1259,7 +1259,7 @@ back_comment (ptrdiff_t from, ptrdiff_t from_byte, ptrdiff_t stop,
       c = FETCH_CHAR_AS_MULTIBYTE (from_byte);
       syntax = SYNTAX_WITH_FLAGS (c);
       code = SYNTAX (c);
-      if (code != Scomment)
+      if (code != Scomment && code != Scomment_fence)
         {
           if (from <= stop)
             return false;
@@ -3459,7 +3459,6 @@ scan_sexps_forward (struct lisp_parse_state *stateptr,
                    EMACS_INT targetdepth, bool stopbefore,
                    int commentstop)
 {
-  ptrdiff_t count = SPECPDL_INDEX ();
   struct lisp_parse_state state;
   enum syntaxcode code;
   int c1;