aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorAlan Mackenzie2017-11-03 19:45:17 +0000
committerAlan Mackenzie2017-11-03 19:45:17 +0000
commita0d30d6369018deeffcae174a3c615e582de74d3 (patch)
tree3e0f21a0f8aae8b225bdce7f15c36d187690db57 /doc/misc
parent383abc8898cbdb46e460adffbccfda8b2236d24e (diff)
downloademacs-a0d30d6369018deeffcae174a3c615e582de74d3.tar.gz
emacs-a0d30d6369018deeffcae174a3c615e582de74d3.zip
Introduce a function to CC Mode which displays the current function name
Remove an erroneous interactive specification from two functions. * lisp/progmodes/cc-cmds.el (c-display-defun-name): New command. (c-defun-name, c-cpp-define-name): Remove interactive specification. * lisp/progmodes/cc-mode.el (c-mode-base-map): Add binding C-c C-z for the new command. * doc/misc/cc-mode.texi (Other Commands): Add documentation for the new command.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/cc-mode.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi
index c90f6d06bf6..09a86c888d3 100644
--- a/doc/misc/cc-mode.texi
+++ b/doc/misc/cc-mode.texi
@@ -1760,6 +1760,7 @@ file. For commands that you can use to view the effect of your changes,
1760see @ref{Indentation Commands} and @ref{Filling and Breaking}. 1760see @ref{Indentation Commands} and @ref{Filling and Breaking}.
1761 1761
1762For details of the @ccmode{} style system, see @ref{Styles}. 1762For details of the @ccmode{} style system, see @ref{Styles}.
1763
1763@item @kbd{C-c :} (@code{c-scope-operator}) 1764@item @kbd{C-c :} (@code{c-scope-operator})
1764@kindex C-c : 1765@kindex C-c :
1765@findex c-scope-operator 1766@findex c-scope-operator
@@ -1768,6 +1769,18 @@ In C++, it is also sometimes desirable to insert the double-colon scope
1768operator without performing the electric behavior of colon insertion. 1769operator without performing the electric behavior of colon insertion.
1769@kbd{C-c :} does just this. 1770@kbd{C-c :} does just this.
1770 1771
1772@item @kbd{C-c C-z} (@code{c-display-defun-name})
1773@kindex C-c C-z
1774@findex c-display-defun-name
1775@findex display-defun-name (c-)
1776Display the current function name, if any, in the minibuffer.
1777Additionally, if a prefix argument is given, push the function name to
1778the kill ring. If there is no current function,
1779@code{c-display-defun-name} does nothing. In Emacs, you can use this
1780command in the middle of an interactive search if you set the
1781customizable option @code{isearch-allow-scoll} to non-@code{nil}.
1782@xref{Not Exiting Isearch,,,emacs, GNU Emacs Manual}.
1783
1771@item @kbd{C-c C-\} (@code{c-backslash-region}) 1784@item @kbd{C-c C-\} (@code{c-backslash-region})
1772@kindex C-c C-\ 1785@kindex C-c C-\
1773@findex c-backslash-region 1786@findex c-backslash-region