emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 558038c: CC Mode: Fix error in macro cache. This fi


From: Alan Mackenzie
Subject: [Emacs-diffs] master 558038c: CC Mode: Fix error in macro cache. This fixes bug #36802
Date: Fri, 2 Aug 2019 09:41:01 -0400 (EDT)

branch: master
commit 558038ccb76614d60bf54cb62359027d25e00f72
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>

    CC Mode: Fix error in macro cache.  This fixes bug #36802
    
    * lisp/progmodes/cc-engine.el (c-invalidate-macro-cache): Add in a cond arm
    to handle the change position being less than the recorded CPP contruct end.
---
 lisp/progmodes/cc-engine.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 37d4591..a095277 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -271,6 +271,11 @@
     (setcdr c-macro-cache nil)
     (setq c-macro-cache-start-pos beg
          c-macro-cache-syntactic nil
+         c-macro-cache-no-comment nil))
+   ((and c-macro-cache-start-pos
+        (< beg c-macro-cache-start-pos))
+    (setq c-macro-cache-start-pos beg
+         c-macro-cache-syntactic nil
          c-macro-cache-no-comment nil))))
 
 (defun c-macro-is-genuine-p ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]