diff options
| author | Alan Mackenzie | 2011-10-28 14:34:39 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2011-10-28 14:34:39 +0000 |
| commit | 020716e178cdae443a3630c4307023cb3fc4c350 (patch) | |
| tree | 47ed6164c0d4a262cce8d41cef7d88592fe69fa4 /doc | |
| parent | 86c606818495d9411fd5d6b1477f9a097eb18020 (diff) | |
| download | emacs-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.texi | 11 |
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 | ||
| 886 | Move to the beginning or end of the current or next function. Other | 888 | Move to the beginning or end of the current or next function. Other |
| 887 | constructs (such as a structs or classes) which have a brace block | 889 | constructs (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 | |||
| 895 | start or end of the function. This occasionally causes point not to | 897 | start or end of the function. This occasionally causes point not to |
| 896 | move at all. | 898 | move at all. |
| 897 | 899 | ||
| 900 | By default, these commands will recognize functions contained within a | ||
| 901 | @dfn{declaration scope} such as a C++ @code{class} or @code{namespace} | ||
| 902 | construct, should the point start inside it. If @ccmode fails to find | ||
| 903 | function beginnings or ends inside the current declaration scope, it | ||
| 904 | will search the enclosing scopes. If you want @ccmode to recognize | ||
| 905 | functions only at the top level@footnote{this was @ccmode{}'s | ||
| 906 | behaviour prior to version 5.32.}, set @code{c-defun-tatic} to | ||
| 907 | @code{t}. | ||
| 908 | |||
| 898 | These functions are analogous to the Emacs built-in commands | 909 | These 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 |
| 900 | eliminate the constraint that the top-level opening brace of the defun | 911 | eliminate the constraint that the top-level opening brace of the defun |