summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2013-06-04 13:26:15 +0000
committerAlan Mackenzie <acm@muc.de>2013-06-04 13:26:15 +0000
commit6490c52ee82c796612ac1feb2661bc6e5c8ad07d (patch)
tree316260c07a35135c96a4bf08b118da1c8ddac180 /lisp
parent0f55a32e46cfe9243f2318b9a5087bfa2458ec5e (diff)
downloademacs-6490c52ee82c796612ac1feb2661bc6e5c8ad07d.tar.gz
emacs-6490c52ee82c796612ac1feb2661bc6e5c8ad07d.tar.bz2
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."
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