From a2c967e28ba53d282764bdcc624e64b6c3b7bb06 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sun, 27 Aug 2017 10:38:47 +0000 Subject: [PATCH] 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. --- lisp/progmodes/cc-engine.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2