From: Alan Mackenzie Date: Tue, 4 Jun 2013 13:26:15 +0000 (+0000) Subject: Remove faulty optimisation from indentation calculation. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~81 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6490c52ee82c796612ac1feb2661bc6e5c8ad07d;p=emacs.git Remove faulty optimisation from indentation calculation. * progmodes/cc-engine.el (c-guess-basic-syntax): Don't calculate search limit based on 2000 characters back from indent-point. --- diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index b0c0bfd7bde..9077bdbb513 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -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