emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master a12c7ea: c-defun-name: Return fully qualified metho


From: Alan Mackenzie
Subject: [Emacs-diffs] master a12c7ea: c-defun-name: Return fully qualified method names when wanted in C++, etc.
Date: Tue, 30 May 2017 13:09:30 -0400 (EDT)

branch: master
commit a12c7ea88eb218550654fdb511d9be114742d692
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>

    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.
---
 lisp/progmodes/cc-cmds.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index a5ddcb4..9c0798e 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]