emacs-diffs
[Top][All Lists]
Advanced

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

emacs-27 c9160bd: CC Mode: Fix error in cache handling. This fixes bug #


From: Alan Mackenzie
Subject: emacs-27 c9160bd: CC Mode: Fix error in cache handling. This fixes bug #43481
Date: Thu, 26 Nov 2020 06:39:31 -0500 (EST)

branch: emacs-27
commit c9160bda7889d9e37a9b82ef64bf711ba7e32e41
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>

    CC Mode: Fix error in cache handling.  This fixes bug #43481
    
    * lisp/progmodes/cc-engine.el (c-full-pp-to-literal): Handle correctly END
    being before HERE by using parse-partial-sexp to get the end of the literal
    containing HERE.
---
 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 babe6e7..01ab253 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -3155,7 +3155,7 @@ comment at the start of cc-engine.el for more info."
                      ((nth 7 s) 'c++)
                      (t 'c)))
            (setq start (nth 8 s))
-           (unless end
+           (unless (and end (>= end here))
              (setq s1 (parse-partial-sexp here (point-max)
                                           nil            ; TARGETDEPTH
                                           nil            ; STOPBEFORE



reply via email to

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