projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee08b3
)
Fontify constructs following "::" in C++ argument lists correctly - part 2.
author
Alan Mackenzie
<acm@muc.de>
Wed, 17 Aug 2016 19:37:19 +0000
(19:37 +0000)
committer
Alan Mackenzie
<acm@muc.de>
Wed, 17 Aug 2016 19:37:19 +0000
(19:37 +0000)
This fixes bug #24246.
* lisp/progmodes/cc-engine.el (c-find-decl-prefix-search): Put a
`save-match-data' around the new `looking-at' introduced by the previous CC
Mode patch this evening.
lisp/progmodes/cc-engine.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cc-engine.el
b/lisp/progmodes/cc-engine.el
index 1310ef77f7ee68c5d238176efce4dfa6da9b7891..8e8e4e490b7a93f036726c10f25a1130ee779849 100644
(file)
--- a/
lisp/progmodes/cc-engine.el
+++ b/
lisp/progmodes/cc-engine.el
@@
-5172,7
+5172,8
@@
comment at the start of cc-engine.el for more info."
(match-string 1)
(save-excursion
(goto-char (match-beginning 1))
- (looking-at c-opt-identifier-concat-key)))
+ (save-match-data
+ (looking-at c-opt-identifier-concat-key))))
;; Found, e.g., "::" in C++
t)
((and (match-string 1)