aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorAlan Mackenzie2013-06-04 13:26:15 +0000
committerAlan Mackenzie2013-06-04 13:26:15 +0000
commit6490c52ee82c796612ac1feb2661bc6e5c8ad07d (patch)
tree316260c07a35135c96a4bf08b118da1c8ddac180 /lisp
parent0f55a32e46cfe9243f2318b9a5087bfa2458ec5e (diff)
downloademacs-6490c52ee82c796612ac1feb2661bc6e5c8ad07d.tar.gz
emacs-6490c52ee82c796612ac1feb2661bc6e5c8ad07d.zip
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/cc-engine.el4
1 files changed, 0 insertions, 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."
9355 containing-sexp nil))) 9355 containing-sexp nil)))
9356 (setq lim (1+ containing-sexp)))) 9356 (setq lim (1+ containing-sexp))))
9357 (setq lim (point-min))) 9357 (setq lim (point-min)))
9358 (when (c-beginning-of-macro)
9359 (goto-char indent-point)
9360 (let ((lim1 (c-determine-limit 2000)))
9361 (setq lim (max lim lim1))))
9362 9358
9363 ;; If we're in a parenthesis list then ',' delimits the 9359 ;; If we're in a parenthesis list then ',' delimits the
9364 ;; "statements" rather than being an operator (with the 9360 ;; "statements" rather than being an operator (with the