summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2017-05-30 17:07:12 +0000
committerAlan Mackenzie <acm@muc.de>2017-05-30 17:07:12 +0000
commita12c7ea88eb218550654fdb511d9be114742d692 (patch)
treec17a230e718000468384604555d4132c42e236cb
parentd17aa3e535bba5e93ff188d5460c91001074255e (diff)
downloademacs-a12c7ea88eb218550654fdb511d9be114742d692.tar.gz
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.
-rw-r--r--lisp/progmodes/cc-cmds.el2
1 files changed, 1 insertions, 1 deletions
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)