diff options
| author | Stephen Eglen | 2005-01-10 18:30:55 +0000 |
|---|---|---|
| committer | Stephen Eglen | 2005-01-10 18:30:55 +0000 |
| commit | 054af0fd87413d2f9c826df25b571e7334385dad (patch) | |
| tree | 51c9d1669be09100bb1c6cd391da57abf181098c /man/programs.texi | |
| parent | b748957a3a3fe178769826d3f12ca653fa3f3069 (diff) | |
| download | emacs-054af0fd87413d2f9c826df25b571e7334385dad.tar.gz emacs-054af0fd87413d2f9c826df25b571e7334385dad.zip | |
Re-read for factual correctness; some lisp functions had changed, and
a few minor additions were made to the text.
Diffstat (limited to 'man/programs.texi')
| -rw-r--r-- | man/programs.texi | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/man/programs.texi b/man/programs.texi index c4efcf67f6c..9852bf88153 100644 --- a/man/programs.texi +++ b/man/programs.texi | |||
| @@ -365,7 +365,7 @@ This key, if the keyboard has it, is another way to enter @kbd{C-j}. | |||
| 365 | The basic indentation command is @key{TAB}, which gives the current line | 365 | The basic indentation command is @key{TAB}, which gives the current line |
| 366 | the correct indentation as determined from the previous lines. The | 366 | the correct indentation as determined from the previous lines. The |
| 367 | function that @key{TAB} runs depends on the major mode; it is | 367 | function that @key{TAB} runs depends on the major mode; it is |
| 368 | @code{indent-for-tab-command} | 368 | @code{lisp-indent-line} |
| 369 | in Lisp mode, @code{c-indent-command} in C mode, etc. These functions | 369 | in Lisp mode, @code{c-indent-command} in C mode, etc. These functions |
| 370 | understand the syntax and conventions of different languages, but they all do | 370 | understand the syntax and conventions of different languages, but they all do |
| 371 | conceptually the same job: @key{TAB} in any programming-language major mode | 371 | conceptually the same job: @key{TAB} in any programming-language major mode |
| @@ -411,7 +411,7 @@ you have several commands available. | |||
| 411 | 411 | ||
| 412 | @table @kbd | 412 | @table @kbd |
| 413 | @item C-M-q | 413 | @item C-M-q |
| 414 | Reindent all the lines within one parenthetical grouping(@code{indent-sexp}). | 414 | Reindent all the lines within one parenthetical grouping(@code{indent-sexp}) . |
| 415 | @item C-M-\ | 415 | @item C-M-\ |
| 416 | Reindent all lines in the region (@code{indent-region}). | 416 | Reindent all lines in the region (@code{indent-region}). |
| 417 | @item C-u @key{TAB} | 417 | @item C-u @key{TAB} |
| @@ -426,7 +426,7 @@ lines that start inside comments and strings. | |||
| 426 | @findex indent-sexp | 426 | @findex indent-sexp |
| 427 | You can reindent the contents of a single parenthetical grouping by | 427 | You can reindent the contents of a single parenthetical grouping by |
| 428 | positioning point before the beginning of it and typing @kbd{C-M-q} | 428 | positioning point before the beginning of it and typing @kbd{C-M-q} |
| 429 | (@code{indent-sexp} in Lisp mode, @code{c-indent-exp} in C mode; also | 429 | (@code{indent-pp-sexp} in Lisp mode, @code{c-indent-exp} in C mode; also |
| 430 | bound to other suitable commands in other modes). The indentation of | 430 | bound to other suitable commands in other modes). The indentation of |
| 431 | the line where the grouping starts is not changed; therefore it | 431 | the line where the grouping starts is not changed; therefore it |
| 432 | changes only the relative indentation within the grouping, not its | 432 | changes only the relative indentation within the grouping, not its |
| @@ -455,6 +455,7 @@ to them. | |||
| 455 | region sideways, like @code{indent-rigidly} does (@pxref{Indentation | 455 | region sideways, like @code{indent-rigidly} does (@pxref{Indentation |
| 456 | Commands}). It doesn't alter the indentation of lines that start | 456 | Commands}). It doesn't alter the indentation of lines that start |
| 457 | inside a string, unless the region also starts inside that string. | 457 | inside a string, unless the region also starts inside that string. |
| 458 | The prefix arg specifies the number of columns to indent. | ||
| 458 | 459 | ||
| 459 | @node Lisp Indent | 460 | @node Lisp Indent |
| 460 | @subsection Customizing Lisp Indentation | 461 | @subsection Customizing Lisp Indentation |
| @@ -797,8 +798,9 @@ as in @samp{[x)}---a warning message is displayed in the echo area. | |||
| 797 | @vindex blink-matching-paren | 798 | @vindex blink-matching-paren |
| 798 | @vindex blink-matching-paren-distance | 799 | @vindex blink-matching-paren-distance |
| 799 | @vindex blink-matching-delay | 800 | @vindex blink-matching-delay |
| 800 | Three variables control parenthesis match display. | 801 | Three variables control parenthesis match display: |
| 801 | @code{blink-matching-paren} turns the feature on or off: @code{nil} | 802 | |
| 803 | @code{blink-matching-paren} turns the feature on or off: @code{nil} | ||
| 802 | disables it, but the default is @code{t} to enable match display. | 804 | disables it, but the default is @code{t} to enable match display. |
| 803 | 805 | ||
| 804 | @code{blink-matching-delay} says how many seconds to leave the | 806 | @code{blink-matching-delay} says how many seconds to leave the |
| @@ -1220,8 +1222,9 @@ v} uses the symbol name around or adjacent to point as its default. | |||
| 1220 | mode constantly displays in the echo area the argument list for the | 1222 | mode constantly displays in the echo area the argument list for the |
| 1221 | function being called at point. (In other words, it finds the | 1223 | function being called at point. (In other words, it finds the |
| 1222 | function call that point is contained in, and displays the argument | 1224 | function call that point is contained in, and displays the argument |
| 1223 | list of that function.) Eldoc mode applies in Emacs Lisp and Lisp | 1225 | list of that function.) If point is over a documented variable, it |
| 1224 | Interaction modes only. Use the command @kbd{M-x eldoc-mode} to | 1226 | shows the variable's docstring. Eldoc mode applies in Emacs Lisp and |
| 1227 | Lisp Interaction modes only. Use the command @kbd{M-x eldoc-mode} to | ||
| 1225 | enable or disable this feature. | 1228 | enable or disable this feature. |
| 1226 | 1229 | ||
| 1227 | @node Hideshow | 1230 | @node Hideshow |
| @@ -1735,8 +1738,8 @@ click on @samp{[A]pply these settings} (or go to that buffer and type | |||
| 1735 | @findex c-show-syntactic-information | 1738 | @findex c-show-syntactic-information |
| 1736 | @kindex C-c C-s @r{(C mode)} | 1739 | @kindex C-c C-s @r{(C mode)} |
| 1737 | Display the syntactic information about the current source line | 1740 | Display the syntactic information about the current source line |
| 1738 | (@code{c-show-syntactic-information}). This is the information that | 1741 | (@code{c-show-syntactic-information}). This information directs how |
| 1739 | directs how the line is indented. | 1742 | the line is indented. |
| 1740 | 1743 | ||
| 1741 | @item M-x cwarn-mode | 1744 | @item M-x cwarn-mode |
| 1742 | @itemx M-x global-cwarn-mode | 1745 | @itemx M-x global-cwarn-mode |
| @@ -2063,7 +2066,7 @@ unless you have said in advance to do so. To do this, set the variable | |||
| 2063 | 2066 | ||
| 2064 | @table @kbd | 2067 | @table @kbd |
| 2065 | @item M-; | 2068 | @item M-; |
| 2066 | Align comment or insert new comment (@code{fortran-comment-indent}). | 2069 | Align comment or insert new comment (@code{fortran-indent-comment}). |
| 2067 | 2070 | ||
| 2068 | @item C-x ; | 2071 | @item C-x ; |
| 2069 | Applies to nonstandard @samp{!} comments only. | 2072 | Applies to nonstandard @samp{!} comments only. |
| @@ -2074,7 +2077,7 @@ into real code (@code{fortran-comment-region}). | |||
| 2074 | @end table | 2077 | @end table |
| 2075 | 2078 | ||
| 2076 | @kbd{M-;} in Fortran mode is redefined as the command | 2079 | @kbd{M-;} in Fortran mode is redefined as the command |
| 2077 | @code{fortran-comment-indent}. Like the usual @kbd{M-;} command, this | 2080 | @code{fortran-indent-comment}. Like the usual @kbd{M-;} command, this |
| 2078 | recognizes any kind of existing comment and aligns its text appropriately; | 2081 | recognizes any kind of existing comment and aligns its text appropriately; |
| 2079 | if there is no existing comment, a comment is inserted and aligned. But | 2082 | if there is no existing comment, a comment is inserted and aligned. But |
| 2080 | inserting and aligning comments are not the same in Fortran mode as in | 2083 | inserting and aligning comments are not the same in Fortran mode as in |