aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAlan Mackenzie2011-10-28 14:34:39 +0000
committerAlan Mackenzie2011-10-28 14:34:39 +0000
commit020716e178cdae443a3630c4307023cb3fc4c350 (patch)
tree47ed6164c0d4a262cce8d41cef7d88592fe69fa4 /doc
parent86c606818495d9411fd5d6b1477f9a097eb18020 (diff)
downloademacs-020716e178cdae443a3630c4307023cb3fc4c350.tar.gz
emacs-020716e178cdae443a3630c4307023cb3fc4c350.zip
DTRT for c-beginning/end-of-defun in nested declaration scopes.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/cc-mode.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi
index a9339162666..8818904982b 100644
--- a/doc/misc/cc-mode.texi
+++ b/doc/misc/cc-mode.texi
@@ -882,6 +882,8 @@ lines.
882@itemx @kbd{C-M-e} (@code{c-end-of-defun}) 882@itemx @kbd{C-M-e} (@code{c-end-of-defun})
883@findex c-beginning-of-defun 883@findex c-beginning-of-defun
884@findex c-end-of-defun 884@findex c-end-of-defun
885@vindex c-defun-tactic
886@vindex defun-tactic (c-)
885 887
886Move to the beginning or end of the current or next function. Other 888Move to the beginning or end of the current or next function. Other
887constructs (such as a structs or classes) which have a brace block 889constructs (such as a structs or classes) which have a brace block
@@ -895,6 +897,15 @@ commands try to leave point at the beginning of a line near the actual
895start or end of the function. This occasionally causes point not to 897start or end of the function. This occasionally causes point not to
896move at all. 898move at all.
897 899
900By default, these commands will recognize functions contained within a
901@dfn{declaration scope} such as a C++ @code{class} or @code{namespace}
902construct, should the point start inside it. If @ccmode fails to find
903function beginnings or ends inside the current declaration scope, it
904will search the enclosing scopes. If you want @ccmode to recognize
905functions only at the top level@footnote{this was @ccmode{}'s
906behaviour prior to version 5.32.}, set @code{c-defun-tatic} to
907@code{t}.
908
898These functions are analogous to the Emacs built-in commands 909These functions are analogous to the Emacs built-in commands
899@code{beginning-of-defun} and @code{end-of-defun}, except they 910@code{beginning-of-defun} and @code{end-of-defun}, except they
900eliminate the constraint that the top-level opening brace of the defun 911eliminate the constraint that the top-level opening brace of the defun