From 6490c52ee82c796612ac1feb2661bc6e5c8ad07d Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Tue, 4 Jun 2013 13:26:15 +0000 Subject: [PATCH] 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. --- lisp/progmodes/cc-engine.el | 4 ---- 1 file changed, 4 deletions(-) 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 -- 2.11.4.GIT