From: Alan Mackenzie Date: Wed, 17 Aug 2016 19:37:19 +0000 (+0000) Subject: Fontify constructs following "::" in C++ argument lists correctly - part 2. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~21^2~2751 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0434f7609a0239206394280dc3e06854661be949;p=emacs.git 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. --- 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)