]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct two search limits in c-before-change-check_<>-operators.
authorAlan Mackenzie <acm@muc.de>
Wed, 11 Apr 2012 15:32:30 +0000 (15:32 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 11 Apr 2012 15:32:30 +0000 (15:32 +0000)
lisp/ChangeLog
lisp/progmodes/cc-engine.el

index fdd3919b13b69d843e53f3a4eef9197172b13d72..cde248a979e7cc10b2125e3049d5ea63b6634554 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-11  Alan Mackenzie  <acm@muc.de>
+
+       * progmodes/cc-engine.el (c-before-change-check-<>-operators):
+       Correct two search limits.
+
 2012-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * startup.el (command-line-1): Inhibit splash from daemon (bug#10996).
index cf38001c123afa451d88f265bf2b348e6f5c7b82..65e28c11e21c663c8488611ad68bef440d69edb9 100644 (file)
@@ -5382,7 +5382,7 @@ comment at the start of cc-engine.el for more info."
          new-beg new-end need-new-beg need-new-end)
       ;; Locate the barrier before the changed region
       (goto-char  (if beg-lit-limits (car beg-lit-limits) beg))
-      (c-syntactic-skip-backward "^;{}" (max (- beg 2048) (point-min)))
+      (c-syntactic-skip-backward "^;{}" (c-determine-limit 512))
       (setq new-beg (point))
 
       ;; Remove the syntax-table properties from each pertinent <...> pair.
@@ -5393,8 +5393,7 @@ comment at the start of cc-engine.el for more info."
 
       ;; Locate the barrier after END.
       (goto-char (if end-lit-limits (cdr end-lit-limits) end))
-      (c-syntactic-re-search-forward "[;{}]"
-                                    (min (+ end 2048) (point-max)) 'end)
+      (c-syntactic-re-search-forward "[;{}]" (c-determine-+ve-limit 512) 'end)
       (setq new-end (point))
 
       ;; Remove syntax-table properties from the remaining pertinent <...>