]> git.eshelyaron.com Git - emacs.git/commitdiff
c-defun-name: Return fully qualified method names when wanted in C++, etc.
authorAlan Mackenzie <acm@muc.de>
Tue, 30 May 2017 17:07:12 +0000 (17:07 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 30 May 2017 17:07:12 +0000 (17:07 +0000)
* 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.

lisp/progmodes/cc-cmds.el

index a5ddcb4b92d443c9c5dc4267905e0540e1b2b5f5..9c0798e75299722c339e3c721b67854ff7fd2bba 100644 (file)
@@ -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)