[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 0434f76: Fontify constructs following "::" in C++ a
From: |
Alan Mackenzie |
Subject: |
[Emacs-diffs] master 0434f76: Fontify constructs following "::" in C++ argument lists correctly - part 2. |
Date: |
Wed, 17 Aug 2016 19:40:12 +0000 (UTC) |
branch: master
commit 0434f7609a0239206394280dc3e06854661be949
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>
Fontify constructs following "::" in C++ argument lists correctly - part 2.
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 1310ef7..8e8e4e4 100644
--- 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 0434f76: Fontify constructs following "::" in C++ argument lists correctly - part 2.,
Alan Mackenzie <=