aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2017-08-27 10:38:47 +0000
committerAlan Mackenzie2017-08-27 10:38:47 +0000
commita2c967e28ba53d282764bdcc624e64b6c3b7bb06 (patch)
tree35b74775cb73042d2a8073c1044c22071eeeb68b
parent231bfd6818890c0c22181ad253f09c8f2399461d (diff)
downloademacs-a2c967e28ba53d282764bdcc624e64b6c3b7bb06.tar.gz
emacs-a2c967e28ba53d282764bdcc624e64b6c3b7bb06.zip
Amend the CC Mode macro cache to cope with changes at the macro start
Fixes bug #28233. * lisp/progmodes/cc-engine.el (c-invalidate-macro-cache): Fix an off-by-1 error.
-rw-r--r--lisp/progmodes/cc-engine.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 59dc96af030..d20e575a928 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -248,7 +248,7 @@
248 ;; parameters. END isn't used. 248 ;; parameters. END isn't used.
249 (cond 249 (cond
250 ((null c-macro-cache)) 250 ((null c-macro-cache))
251 ((< beg (car c-macro-cache)) 251 ((<= beg (car c-macro-cache))
252 (setq c-macro-cache nil 252 (setq c-macro-cache nil
253 c-macro-cache-start-pos nil 253 c-macro-cache-start-pos nil
254 c-macro-cache-syntactic nil 254 c-macro-cache-syntactic nil