From: Alan Mackenzie Date: Sun, 27 Aug 2017 10:38:47 +0000 (+0000) Subject: Amend the CC Mode macro cache to cope with changes at the macro start X-Git-Tag: emacs-26.0.90~341 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a2c967e28ba53d282764bdcc624e64b6c3b7bb06;p=emacs.git 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. --- 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 @@ ;; parameters. END isn't used. (cond ((null c-macro-cache)) - ((< beg (car c-macro-cache)) + ((<= beg (car c-macro-cache)) (setq c-macro-cache nil c-macro-cache-start-pos nil c-macro-cache-syntactic nil