diff options
author | Alan Mackenzie <acm@muc.de> | 2020-11-26 11:37:38 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2020-11-26 11:37:38 +0000 |
commit | c9160bda7889d9e37a9b82ef64bf711ba7e32e41 (patch) | |
tree | b3158dcfbff0129217794266ece0e86f5a73e5d6 | |
parent | 6442cdc0e4ec466841ff9c3d9016fecd7b72b5a1 (diff) | |
download | emacs-c9160bda7889d9e37a9b82ef64bf711ba7e32e41.tar.gz |
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.
-rw-r--r-- | lisp/progmodes/cc-engine.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index babe6e74760..01ab253ceba 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 |