]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove faulty optimisation from indentation calculation.
authorAlan Mackenzie <acm@muc.de>
Tue, 4 Jun 2013 13:26:15 +0000 (13:26 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 4 Jun 2013 13:26:15 +0000 (13:26 +0000)
        * progmodes/cc-engine.el (c-guess-basic-syntax): Don't calculate
        search limit based on 2000 characters back from indent-point.

lisp/progmodes/cc-engine.el

index b0c0bfd7bde1efc700ac48bb569c6edc76149648..9077bdbb51399fa341649ed52ab8dee349f4bdbd 100644 (file)
@@ -9355,10 +9355,6 @@ comment at the start of cc-engine.el for more info."
                          containing-sexp nil)))
              (setq lim (1+ containing-sexp))))
        (setq lim (point-min)))
-      (when (c-beginning-of-macro)
-       (goto-char indent-point)
-       (let ((lim1 (c-determine-limit 2000)))
-         (setq lim (max lim lim1))))
 
       ;; If we're in a parenthesis list then ',' delimits the
       ;; "statements" rather than being an operator (with the