[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a2c967e: Amend the CC Mode macro cache to cope with
From: |
Alan Mackenzie |
Subject: |
[Emacs-diffs] master a2c967e: Amend the CC Mode macro cache to cope with changes at the macro start |
Date: |
Sun, 27 Aug 2017 06:43:10 -0400 (EDT) |
branch: master
commit a2c967e28ba53d282764bdcc624e64b6c3b7bb06
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>
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 59dc96a..d20e575 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master a2c967e: Amend the CC Mode macro cache to cope with changes at the macro start,
Alan Mackenzie <=