aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2017-05-30 17:07:12 +0000
committerAlan Mackenzie2017-05-30 17:07:12 +0000
commita12c7ea88eb218550654fdb511d9be114742d692 (patch)
treec17a230e718000468384604555d4132c42e236cb
parentd17aa3e535bba5e93ff188d5460c91001074255e (diff)
downloademacs-a12c7ea88eb218550654fdb511d9be114742d692.tar.gz
emacs-a12c7ea88eb218550654fdb511d9be114742d692.zip
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."
1870 (c-backward-token-2) 1870 (c-backward-token-2)
1871 (c-backward-syntactic-ws)) 1871 (c-backward-syntactic-ws))
1872 (setq name-end (point)) 1872 (setq name-end (point))
1873 (c-backward-token-2) 1873 (c-back-over-compound-identifier)
1874 (buffer-substring-no-properties (point) name-end))))))))) 1874 (buffer-substring-no-properties (point) name-end)))))))))
1875 1875
1876(defun c-declaration-limits (near) 1876(defun c-declaration-limits (near)