diff options
Diffstat (limited to 'man/programs.texi')
| -rw-r--r-- | man/programs.texi | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/man/programs.texi b/man/programs.texi index 6404e3466bc..643e6445fb0 100644 --- a/man/programs.texi +++ b/man/programs.texi | |||
| @@ -132,19 +132,6 @@ place to set up customizations for that major mode. @xref{Hooks}. | |||
| 132 | something like a function, is called a @dfn{defun}. The name comes | 132 | something like a function, is called a @dfn{defun}. The name comes |
| 133 | from Lisp, but in Emacs we use it for all languages. | 133 | from Lisp, but in Emacs we use it for all languages. |
| 134 | 134 | ||
| 135 | In many programming language modes, Emacs assumes that a defun is | ||
| 136 | any pair of parentheses (or braces, if the language uses braces this | ||
| 137 | way) that starts at the left margin. For example, in C, the body of a | ||
| 138 | function definition is a defun, usually recognized as an open-brace | ||
| 139 | that begins at the left margin@footnote{Alternatively, you can set up | ||
| 140 | C Mode to recognize a defun at an opening brace at the outermost | ||
| 141 | level. @xref{Movement Commands,,, ccmode, the CC Mode Manual}.}. A | ||
| 142 | variable's initializer can also count as a defun, if the open-brace | ||
| 143 | that begins the initializer is at the left margin. | ||
| 144 | |||
| 145 | However, some language modes provide their own code for recognizing | ||
| 146 | defuns in a way that suits the language syntax and conventions better. | ||
| 147 | |||
| 148 | @menu | 135 | @menu |
| 149 | * Left Margin Paren:: An open-paren or similar opening delimiter | 136 | * Left Margin Paren:: An open-paren or similar opening delimiter |
| 150 | starts a defun if it is at the left margin. | 137 | starts a defun if it is at the left margin. |
| @@ -1573,9 +1560,9 @@ following point. | |||
| 1573 | 1560 | ||
| 1574 | As an alternative to the above commands, you can enable @dfn{hungry | 1561 | As an alternative to the above commands, you can enable @dfn{hungry |
| 1575 | delete mode}. When this feature is enabled (indicated by @samp{/h} in | 1562 | delete mode}. When this feature is enabled (indicated by @samp{/h} in |
| 1576 | the mode line after the mode name), a single @key{DEL} command deletes | 1563 | the mode line after the mode name), a single @key{DEL} deletes all |
| 1577 | all preceding whitespace, not just one space, and a single @kbd{C-c | 1564 | preceding whitespace, not just one space, and a single @kbd{C-c C-d} |
| 1578 | C-d} (but @emph{not} @key{DELETE}) deletes all following whitespace. | 1565 | (but @emph{not} plain @key{DELETE}) deletes all following whitespace. |
| 1579 | 1566 | ||
| 1580 | @table @kbd | 1567 | @table @kbd |
| 1581 | @item M-x c-toggle-hungry-state | 1568 | @item M-x c-toggle-hungry-state |