1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

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.
This commit is contained in:
Alan Mackenzie 2019-08-02 13:38:13 +00:00
parent eddf4664d7
commit 558038ccb7

View file

@ -269,6 +269,11 @@
((and (cdr c-macro-cache)
(< beg (cdr c-macro-cache)))
(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))))