From 0434f7609a0239206394280dc3e06854661be949 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Wed, 17 Aug 2016 19:37:19 +0000 Subject: [PATCH] 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 1310ef77f7e..8e8e4e490b7 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) -- 2.39.5