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:
parent
eddf4664d7
commit
558038ccb7
1 changed files with 5 additions and 0 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue