From: Alan Mackenzie Date: Tue, 30 May 2017 17:07:12 +0000 (+0000) Subject: c-defun-name: Return fully qualified method names when wanted in C++, etc. X-Git-Tag: emacs-26.0.90~521^2~224^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a12c7ea88eb218550654fdb511d9be114742d692;p=emacs.git c-defun-name: Return fully qualified method names when wanted in C++, etc. * lisp/progmodes/cc-cmds.el (c-defun-name): Use c-back-over-compound-identifier in place of c-backward-token-2 near the end of the function. --- diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index a5ddcb4b92d..9c0798e7529 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -1870,7 +1870,7 @@ with a brace block." (c-backward-token-2) (c-backward-syntactic-ws)) (setq name-end (point)) - (c-backward-token-2) + (c-back-over-compound-identifier) (buffer-substring-no-properties (point) name-end))))))))) (defun c-declaration-limits (near)