diff options
| author | Eli Zaretskii | 2018-02-15 20:38:13 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-02-15 20:38:13 +0200 |
| commit | b46be29424cc84982cf8b0cad8f3fdbc98e1c8e0 (patch) | |
| tree | a9141ac102e5f03939798b35d3e8339f72e85db4 | |
| parent | 874c0edf30308392bdba870e92247d7e4b0e66f4 (diff) | |
| download | emacs-b46be29424cc84982cf8b0cad8f3fdbc98e1c8e0.tar.gz emacs-b46be29424cc84982cf8b0cad8f3fdbc98e1c8e0.zip | |
More improvements for the Emacs manual
* doc/emacs/programs.texi (Basic Indent, Comment Commands): Fix
typos.
* doc/emacs/text.texi (TeX Print, HTML Mode, Enriched Faces): Fix
typos.
* doc/emacs/help.texi (Help Files): Improve @uref usage. Reported
by Stefan Kamphausen <stefan.kamphausen@acrolinx.com> in
emacs-manual-bugs@gnu.org.
* doc/emacs/fortran-xtra.texi (ForIndent Commands): Fix a typo.
(ForIndent Commands, Fortran Columns): Add empty lines between
@items in a @table.
(ForIndent Cont, ForIndent Num, Fortran Columns): Mention
'column-number-indicator-zero-based'.
(ForIndent Vars): Fix a typo.
(Fortran Comments): Fix punctuation.
(ForIndent Cont, Fortran Autofill): Fix markup of keyboard input.
* doc/emacs/programs.texi (Comments): Fix a typo.
(Comment Commands): More accurate description of the commands.
(Options for Comments): Don't mention "hook".
(Man Page): Prefer "M-x man" if available.
(Hideshow): Fix the command key sequence.
(Semantic): Update supported languages.
(Semantic, Hungry Delete, Other C Commands): Fix markup of
commands.
(Misc for Programs): Fix a typo.
(Electric C, Hungry Delete): More accurate description of
mode-line lighters of CC submodes.
(Asm Mode): Add empty lines between @items in a @table.
* doc/emacs/programs.texi (Program Modes): Add a few more modes.
Reported by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.
* doc/emacs/msdos.texi (Windows Misc): A minor rewording.
Suggested by Isaac Carter <icarter1391@gmail.com> in
emacs-manual-bugs@gnu.org.
| -rw-r--r-- | doc/emacs/fortran-xtra.texi | 42 | ||||
| -rw-r--r-- | doc/emacs/help.texi | 2 | ||||
| -rw-r--r-- | doc/emacs/msdos.texi | 3 | ||||
| -rw-r--r-- | doc/emacs/programs.texi | 86 | ||||
| -rw-r--r-- | doc/emacs/text.texi | 8 |
5 files changed, 82 insertions, 59 deletions
diff --git a/doc/emacs/fortran-xtra.texi b/doc/emacs/fortran-xtra.texi index 98ff8258dbe..859c6132436 100644 --- a/doc/emacs/fortran-xtra.texi +++ b/doc/emacs/fortran-xtra.texi | |||
| @@ -158,11 +158,14 @@ the required columns. | |||
| 158 | @item C-M-j | 158 | @item C-M-j |
| 159 | Break the current line at point and set up a continuation line | 159 | Break the current line at point and set up a continuation line |
| 160 | (@code{fortran-split-line}). | 160 | (@code{fortran-split-line}). |
| 161 | |||
| 161 | @item M-^ | 162 | @item M-^ |
| 162 | Join this line to the previous line (@code{fortran-join-line}). | 163 | Join this line to the previous line (@code{fortran-join-line}). |
| 164 | |||
| 163 | @item C-M-q | 165 | @item C-M-q |
| 164 | Indent all the lines of the subprogram that point is in | 166 | Indent all the lines of the subprogram that point is in |
| 165 | (@code{fortran-indent-subprogram}). | 167 | (@code{fortran-indent-subprogram}). |
| 168 | |||
| 166 | @item M-q | 169 | @item M-q |
| 167 | Fill a comment block or statement (using @code{fortran-fill-paragraph} | 170 | Fill a comment block or statement (using @code{fortran-fill-paragraph} |
| 168 | or @code{fortran-fill-statement}). | 171 | or @code{fortran-fill-statement}). |
| @@ -185,7 +188,7 @@ lines. | |||
| 185 | @kindex M-^ @r{(Fortran mode)} | 188 | @kindex M-^ @r{(Fortran mode)} |
| 186 | @kindex C-c C-d @r{(Fortran mode)} | 189 | @kindex C-c C-d @r{(Fortran mode)} |
| 187 | @findex fortran-join-line | 190 | @findex fortran-join-line |
| 188 | @kbd{M-^} or @kbd{C-c C-d} runs the command @code{fortran-join-line}, | 191 | @kbd{M-^} or @kbd{C-c C-d} run the command @code{fortran-join-line}, |
| 189 | which joins a continuation line back to the previous line, roughly as | 192 | which joins a continuation line back to the previous line, roughly as |
| 190 | the inverse of @code{fortran-split-line}. The point must be on a | 193 | the inverse of @code{fortran-split-line}. The point must be on a |
| 191 | continuation line when this command is invoked. | 194 | continuation line when this command is invoked. |
| @@ -203,7 +206,9 @@ point is in. This removes any excess statement continuations. | |||
| 203 | If the first non-space character on a line is in column 5, then that | 206 | If the first non-space character on a line is in column 5, then that |
| 204 | line is a continuation of the previous line. We call this @dfn{fixed | 207 | line is a continuation of the previous line. We call this @dfn{fixed |
| 205 | form}. (In GNU Emacs we always count columns from 0; but note that | 208 | form}. (In GNU Emacs we always count columns from 0; but note that |
| 206 | the Fortran standard counts from 1.) The variable | 209 | the Fortran standard counts from 1. You can customize the variable |
| 210 | @code{column-number-indicator-zero-based} to make the column display | ||
| 211 | Fortran-like; @pxref{Optional Mode Line}.) The variable | ||
| 207 | @code{fortran-continuation-string} specifies what character to put in | 212 | @code{fortran-continuation-string} specifies what character to put in |
| 208 | column 5. A line that starts with a tab character followed by any digit | 213 | column 5. A line that starts with a tab character followed by any digit |
| 209 | except @samp{0} is also a continuation line. We call this style of | 214 | except @samp{0} is also a continuation line. We call this style of |
| @@ -229,10 +234,10 @@ accordingly. | |||
| 229 | If the text on a line starts with the Fortran continuation marker | 234 | If the text on a line starts with the Fortran continuation marker |
| 230 | @samp{$}, or if it begins with any non-whitespace character in column | 235 | @samp{$}, or if it begins with any non-whitespace character in column |
| 231 | 5, Fortran mode treats it as a continuation line. When you indent a | 236 | 5, Fortran mode treats it as a continuation line. When you indent a |
| 232 | continuation line with @key{TAB}, it converts the line to the current | 237 | continuation line with @kbd{@key{TAB}}, it converts the line to the |
| 233 | continuation style. When you split a Fortran statement with | 238 | current continuation style. When you split a Fortran statement with |
| 234 | @kbd{C-M-j}, the continuation marker on the newline is created according | 239 | @kbd{C-M-j}, the continuation marker on the newline is created |
| 235 | to the continuation style. | 240 | according to the continuation style. |
| 236 | 241 | ||
| 237 | The setting of continuation style affects several other aspects of | 242 | The setting of continuation style affects several other aspects of |
| 238 | editing in Fortran mode. In fixed form mode, the minimum column | 243 | editing in Fortran mode. In fixed form mode, the minimum column |
| @@ -247,7 +252,9 @@ column 8 must consist of one tab character. | |||
| 247 | 252 | ||
| 248 | If a number is the first non-whitespace in the line, Fortran | 253 | If a number is the first non-whitespace in the line, Fortran |
| 249 | indentation assumes it is a line number and moves it to columns 0 | 254 | indentation assumes it is a line number and moves it to columns 0 |
| 250 | through 4. (Columns always count from 0 in Emacs.) | 255 | through 4. (Columns always count from 0 in Emacs, but setting |
| 256 | @code{column-number-indicator-zero-based} to @code{nil} can change | ||
| 257 | that, @pxref{Optional Mode Line}.) | ||
| 251 | 258 | ||
| 252 | @vindex fortran-line-number-indent | 259 | @vindex fortran-line-number-indent |
| 253 | Line numbers of four digits or less are normally indented one space. | 260 | Line numbers of four digits or less are normally indented one space. |
| @@ -320,7 +327,7 @@ Extra indentation within each level of @samp{structure}, @samp{union}, | |||
| 320 | Extra indentation for bodies of continuation lines (default 5). | 327 | Extra indentation for bodies of continuation lines (default 5). |
| 321 | 328 | ||
| 322 | @item fortran-check-all-num-for-matching-do | 329 | @item fortran-check-all-num-for-matching-do |
| 323 | In Fortran 77, a numbered @samp{do} statement is ended by any statement | 330 | In Fortran 77, a numbered @samp{do} statement is terminated by any statement |
| 324 | with a matching line number. It is common (but not compulsory) to use a | 331 | with a matching line number. It is common (but not compulsory) to use a |
| 325 | @samp{continue} statement for this purpose. If this variable has a | 332 | @samp{continue} statement for this purpose. If this variable has a |
| 326 | non-@code{nil} value, indenting any numbered statement must check for a | 333 | non-@code{nil} value, indenting any numbered statement must check for a |
| @@ -330,7 +337,7 @@ then you can speed up indentation by setting this variable to | |||
| 330 | @code{nil} (the default). | 337 | @code{nil} (the default). |
| 331 | 338 | ||
| 332 | @item fortran-blink-matching-if | 339 | @item fortran-blink-matching-if |
| 333 | If this is @code{t}, indenting an @samp{endif} (or @samp{enddo} | 340 | If this is @code{t}, indenting an @samp{endif} (or @samp{enddo}) |
| 334 | statement moves the cursor momentarily to the matching @samp{if} (or | 341 | statement moves the cursor momentarily to the matching @samp{if} (or |
| 335 | @samp{do}) statement to show where it is. The default is @code{nil}. | 342 | @samp{do}) statement to show where it is. The default is @code{nil}. |
| 336 | 343 | ||
| @@ -386,7 +393,7 @@ Fortran mode as in other modes. | |||
| 386 | 393 | ||
| 387 | When a new comment must be inserted, if the current line is blank, a | 394 | When a new comment must be inserted, if the current line is blank, a |
| 388 | full-line comment is inserted. On a non-blank line, a nonstandard @samp{!} | 395 | full-line comment is inserted. On a non-blank line, a nonstandard @samp{!} |
| 389 | comment is inserted if you have said you want to use them. Otherwise a | 396 | comment is inserted if you have said you want to use them. Otherwise, a |
| 390 | full-line comment is inserted on a new line before the current line. | 397 | full-line comment is inserted on a new line before the current line. |
| 391 | 398 | ||
| 392 | Nonstandard @samp{!} comments are aligned like comments in other | 399 | Nonstandard @samp{!} comments are aligned like comments in other |
| @@ -434,7 +441,7 @@ distinctive font-locking. | |||
| 434 | 441 | ||
| 435 | The normal Emacs comment command @kbd{C-x ;} (@code{comment-set-column}) | 442 | The normal Emacs comment command @kbd{C-x ;} (@code{comment-set-column}) |
| 436 | has not been redefined. If you use @samp{!} comments, this command | 443 | has not been redefined. If you use @samp{!} comments, this command |
| 437 | can be used with them. Otherwise it is useless in Fortran mode. | 444 | can be used with them. Otherwise, it is useless in Fortran mode. |
| 438 | 445 | ||
| 439 | @kindex C-c ; @r{(Fortran mode)} | 446 | @kindex C-c ; @r{(Fortran mode)} |
| 440 | @findex fortran-comment-region | 447 | @findex fortran-comment-region |
| @@ -457,9 +464,9 @@ minor mode that automatically splits statements as you insert them | |||
| 457 | when they become too wide. Splitting a statement involves making | 464 | when they become too wide. Splitting a statement involves making |
| 458 | continuation lines using @code{fortran-continuation-string} | 465 | continuation lines using @code{fortran-continuation-string} |
| 459 | (@pxref{ForIndent Cont}). This splitting happens when you type | 466 | (@pxref{ForIndent Cont}). This splitting happens when you type |
| 460 | @key{SPC}, @key{RET}, or @key{TAB}, and also in the Fortran | 467 | @kbd{@key{SPC}}, @kbd{@key{RET}}, or @kbd{@key{TAB}}, and also in the |
| 461 | indentation commands. You activate Auto Fill in Fortran mode in the | 468 | Fortran indentation commands. You activate Auto Fill in Fortran mode |
| 462 | normal way. | 469 | in the normal way. |
| 463 | @iftex | 470 | @iftex |
| 464 | @xref{Auto Fill,,, emacs, the Emacs Manual}. | 471 | @xref{Auto Fill,,, emacs, the Emacs Manual}. |
| 465 | @end iftex | 472 | @end iftex |
| @@ -501,15 +508,18 @@ will confuse font-lock.) | |||
| 501 | @item C-c C-r | 508 | @item C-c C-r |
| 502 | Display a column ruler momentarily above the current line | 509 | Display a column ruler momentarily above the current line |
| 503 | (@code{fortran-column-ruler}). | 510 | (@code{fortran-column-ruler}). |
| 511 | |||
| 504 | @item C-c C-w | 512 | @item C-c C-w |
| 505 | Split the current window horizontally temporarily so that it is | 513 | Split the current window horizontally temporarily so that it is |
| 506 | @code{fortran-line-length} columns wide | 514 | @code{fortran-line-length} columns wide |
| 507 | (@code{fortran-window-create-momentarily}). This may help you avoid | 515 | (@code{fortran-window-create-momentarily}). This may help you avoid |
| 508 | making lines longer than the limit imposed by your Fortran compiler. | 516 | making lines longer than the limit imposed by your Fortran compiler. |
| 517 | |||
| 509 | @item C-u C-c C-w | 518 | @item C-u C-c C-w |
| 510 | Split the current window horizontally so that it is | 519 | Split the current window horizontally so that it is |
| 511 | @code{fortran-line-length} columns wide (@code{fortran-window-create}). | 520 | @code{fortran-line-length} columns wide (@code{fortran-window-create}). |
| 512 | You can then continue editing. | 521 | You can then continue editing. |
| 522 | |||
| 513 | @item M-x fortran-strip-sequence-nos | 523 | @item M-x fortran-strip-sequence-nos |
| 514 | Delete all text in column @code{fortran-line-length} and beyond. | 524 | Delete all text in column @code{fortran-line-length} and beyond. |
| 515 | @end table | 525 | @end table |
| @@ -523,7 +533,9 @@ Fortran programs. Square brackets show the limits of the columns for line | |||
| 523 | numbers, and curly brackets show the limits of the columns for the | 533 | numbers, and curly brackets show the limits of the columns for the |
| 524 | statement body. Column numbers appear above them. | 534 | statement body. Column numbers appear above them. |
| 525 | 535 | ||
| 526 | Note that the column numbers count from zero, as always in GNU Emacs. | 536 | Note that the column numbers count from zero, as always in GNU Emacs |
| 537 | (but customizing @code{column-number-indicator-zero-based} can change | ||
| 538 | column display to match that of Fortran; @pxref{Optional Mode Line}). | ||
| 527 | As a result, the numbers may be one less than those you are familiar | 539 | As a result, the numbers may be one less than those you are familiar |
| 528 | with; but the positions they indicate in the line are standard for | 540 | with; but the positions they indicate in the line are standard for |
| 529 | Fortran. | 541 | Fortran. |
diff --git a/doc/emacs/help.texi b/doc/emacs/help.texi index 2ed264258eb..6c093f13d05 100644 --- a/doc/emacs/help.texi +++ b/doc/emacs/help.texi | |||
| @@ -642,7 +642,7 @@ Display information about where to get external packages | |||
| 642 | @item C-h C-f | 642 | @item C-h C-f |
| 643 | Display the Emacs frequently-answered-questions list (@code{view-emacs-FAQ}). | 643 | Display the Emacs frequently-answered-questions list (@code{view-emacs-FAQ}). |
| 644 | @item C-h g | 644 | @item C-h g |
| 645 | Visit a @uref{https://www.gnu.org} page with information about the GNU | 645 | Visit the @uref{https://www.gnu.org, page} with information about the GNU |
| 646 | Project (@code{describe-gnu-project}). | 646 | Project (@code{describe-gnu-project}). |
| 647 | @item C-h C-m | 647 | @item C-h C-m |
| 648 | Display information about ordering printed copies of Emacs manuals | 648 | Display information about ordering printed copies of Emacs manuals |
diff --git a/doc/emacs/msdos.texi b/doc/emacs/msdos.texi index dd368adb54a..27f9667e38b 100644 --- a/doc/emacs/msdos.texi +++ b/doc/emacs/msdos.texi | |||
| @@ -1033,7 +1033,8 @@ the system default antialiasing. | |||
| 1033 | @node Windows Misc | 1033 | @node Windows Misc |
| 1034 | @section Miscellaneous Windows-specific features | 1034 | @section Miscellaneous Windows-specific features |
| 1035 | 1035 | ||
| 1036 | This section describes miscellaneous Windows-specific features. | 1036 | This section describes Windows-specific features that don't fit |
| 1037 | anywhere else. | ||
| 1037 | 1038 | ||
| 1038 | @vindex w32-use-visible-system-caret | 1039 | @vindex w32-use-visible-system-caret |
| 1039 | @cindex screen reader software, MS-Windows | 1040 | @cindex screen reader software, MS-Windows |
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 3944ce46071..2bd6101782d 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi | |||
| @@ -86,14 +86,14 @@ mode for the C programming language is @code{c-mode}. | |||
| 86 | @cindex Awk mode | 86 | @cindex Awk mode |
| 87 | Emacs has programming language modes for Lisp, Scheme, the | 87 | Emacs has programming language modes for Lisp, Scheme, the |
| 88 | Scheme-based DSSSL expression language, Ada, ASM, AWK, C, C++, | 88 | Scheme-based DSSSL expression language, Ada, ASM, AWK, C, C++, |
| 89 | Fortran, Icon, IDL (CORBA), IDLWAVE, Java, Javascript, Metafont | 89 | Fortran, Icon, IDL (CORBA), IDLWAVE, Java, Javascript, M4, Makefiles, |
| 90 | (@TeX{}'s companion for font creation), Modula2, Object Pascal, | 90 | Metafont (@TeX{}'s companion for font creation), Modula2, Object |
| 91 | Objective-C, Octave, Pascal, Perl, Pike, PostScript, Prolog, Python, | 91 | Pascal, Objective-C, Octave, Pascal, Perl, Pike, PostScript, Prolog, |
| 92 | Ruby, Simula, SQL, Tcl, Verilog, and VHDL@. An alternative mode for | 92 | Python, Ruby, Simula, SQL, Tcl, Verilog, and VHDL@. An alternative |
| 93 | Perl is called CPerl mode. Modes are also available for the scripting | 93 | mode for Perl is called CPerl mode. Modes are also available for the |
| 94 | languages of the common GNU and Unix shells, and MS-DOS/MS-Windows | 94 | scripting languages of the common GNU and Unix shells, and |
| 95 | @samp{BAT} files, and for makefiles, DNS master files, and various | 95 | MS-DOS/MS-Windows @samp{BAT} files, and for makefiles, DNS master |
| 96 | sorts of configuration files. | 96 | files, and various sorts of configuration files. |
| 97 | 97 | ||
| 98 | Ideally, Emacs should have a major mode for each programming | 98 | Ideally, Emacs should have a major mode for each programming |
| 99 | language that you might want to edit. If it doesn't have a mode for | 99 | language that you might want to edit. If it doesn't have a mode for |
| @@ -403,7 +403,7 @@ manually give one of these lines a nonstandard indentation (e.g., for | |||
| 403 | aesthetic purposes), the lines below will follow it. | 403 | aesthetic purposes), the lines below will follow it. |
| 404 | 404 | ||
| 405 | The indentation commands for most programming language modes assume | 405 | The indentation commands for most programming language modes assume |
| 406 | that a open-parenthesis, open-brace or other opening delimiter at the | 406 | that an open-parenthesis, open-brace or other opening delimiter at the |
| 407 | left margin is the start of a function. If the code you are editing | 407 | left margin is the start of a function. If the code you are editing |
| 408 | violates this assumption---even if the delimiters occur in strings or | 408 | violates this assumption---even if the delimiters occur in strings or |
| 409 | comments---you must set @code{open-paren-in-column-0-is-defun-start} | 409 | comments---you must set @code{open-paren-in-column-0-is-defun-start} |
| @@ -927,7 +927,7 @@ also do spell checking on comments with Flyspell Prog mode | |||
| 927 | comments. For example, in Lisp code, comments starting with two | 927 | comments. For example, in Lisp code, comments starting with two |
| 928 | semicolons are indented as if they were lines of code, while those | 928 | semicolons are indented as if they were lines of code, while those |
| 929 | starting with three semicolons are supposed to be aligned to the left | 929 | starting with three semicolons are supposed to be aligned to the left |
| 930 | margin and are often used for sectioning purposes. Emacs understand | 930 | margin and are often used for sectioning purposes. Emacs understands |
| 931 | these conventions; for instance, typing @kbd{@key{TAB}} on a comment | 931 | these conventions; for instance, typing @kbd{@key{TAB}} on a comment |
| 932 | line will indent the comment to the appropriate position. | 932 | line will indent the comment to the appropriate position. |
| 933 | 933 | ||
| @@ -958,7 +958,9 @@ line will indent the comment to the appropriate position. | |||
| 958 | Insert or realign comment on current line; if the region is active, | 958 | Insert or realign comment on current line; if the region is active, |
| 959 | comment or uncomment the region instead (@code{comment-dwim}). | 959 | comment or uncomment the region instead (@code{comment-dwim}). |
| 960 | @item @kbd{C-x C-;} | 960 | @item @kbd{C-x C-;} |
| 961 | Comment or uncomment the current line (@code{comment-line}). | 961 | Comment or uncomment the current line (@code{comment-line}). If the |
| 962 | region is active, comment or uncomment the lines in the region | ||
| 963 | instead. | ||
| 962 | @item @kbd{C-u M-;} | 964 | @item @kbd{C-u M-;} |
| 963 | Kill comment on current line (@code{comment-kill}). | 965 | Kill comment on current line (@code{comment-kill}). |
| 964 | @item @kbd{C-x ;} | 966 | @item @kbd{C-x ;} |
| @@ -1045,8 +1047,7 @@ region, even if the mark is inactive. In C mode and related modes, | |||
| 1045 | this command is bound to @kbd{C-c C-c}. The command @kbd{M-x | 1047 | this command is bound to @kbd{C-c C-c}. The command @kbd{M-x |
| 1046 | uncomment-region} uncomments each line in the region; a numeric prefix | 1048 | uncomment-region} uncomments each line in the region; a numeric prefix |
| 1047 | argument specifies the number of comment delimiters to remove | 1049 | argument specifies the number of comment delimiters to remove |
| 1048 | (negative arguments specify the number of comment to delimiters to | 1050 | (negative arguments specify the number of comment delimiters to add). |
| 1049 | add). | ||
| 1050 | 1051 | ||
| 1051 | For C-like modes, you can configure the exact effect of @kbd{M-;} by | 1052 | For C-like modes, you can configure the exact effect of @kbd{M-;} by |
| 1052 | setting the variables @code{c-indent-comment-alist} and | 1053 | setting the variables @code{c-indent-comment-alist} and |
| @@ -1151,8 +1152,8 @@ comment or for aligning an existing comment. It is set differently by | |||
| 1151 | various major modes. The function is called with no arguments, but with | 1152 | various major modes. The function is called with no arguments, but with |
| 1152 | point at the beginning of the comment, or at the end of a line if a new | 1153 | point at the beginning of the comment, or at the end of a line if a new |
| 1153 | comment is to be inserted. It should return the column in which the | 1154 | comment is to be inserted. It should return the column in which the |
| 1154 | comment ought to start. For example, the default hook function bases | 1155 | comment ought to start. For example, the default function bases its |
| 1155 | its decision on how many comment characters begin an existing comment. | 1156 | decision on how many comment characters begin an existing comment. |
| 1156 | 1157 | ||
| 1157 | Emacs also tries to align comments on adjacent lines. To override | 1158 | Emacs also tries to align comments on adjacent lines. To override |
| 1158 | this, the function may return a cons of two (possibly equal) integers | 1159 | this, the function may return a cons of two (possibly equal) integers |
| @@ -1183,10 +1184,10 @@ buffer at point. For example, in C mode this looks for the symbol in | |||
| 1183 | the C Library Manual. The command only works if the appropriate | 1184 | the C Library Manual. The command only works if the appropriate |
| 1184 | manual's Info files are installed. | 1185 | manual's Info files are installed. |
| 1185 | 1186 | ||
| 1186 | The major mode determines where to look for documentation for the | 1187 | Emacs determines where to look for documentation for the |
| 1187 | symbol---which Info files to look in, and which indices to search. | 1188 | symbol---which Info files to look in, and which indices to |
| 1188 | You can also use @kbd{M-x info-lookup-file} to look for documentation | 1189 | search---based on the major mode. You can also use @kbd{M-x |
| 1189 | for a file name. | 1190 | info-lookup-file} to look for documentation for a file name. |
| 1190 | 1191 | ||
| 1191 | If you use @kbd{C-h S} in a major mode that does not support it, | 1192 | If you use @kbd{C-h S} in a major mode that does not support it, |
| 1192 | it asks you to specify the symbol help mode. You should enter | 1193 | it asks you to specify the symbol help mode. You should enter |
| @@ -1256,6 +1257,10 @@ several manual pages by the same name exist in different sections, it | |||
| 1256 | pops up a window with possible candidates asking you to choose one of | 1257 | pops up a window with possible candidates asking you to choose one of |
| 1257 | them. | 1258 | them. |
| 1258 | 1259 | ||
| 1260 | Note that @kbd{M-x woman} doesn't yet support the latest features of | ||
| 1261 | modern man pages, so we recommend using @kbd{M-x man} if that is | ||
| 1262 | available on your system. | ||
| 1263 | |||
| 1259 | For more information about setting up and using @kbd{M-x woman}, see | 1264 | For more information about setting up and using @kbd{M-x woman}, see |
| 1260 | @ifinfo | 1265 | @ifinfo |
| 1261 | @ref{Top, WoMan, Browse UN*X Manual Pages WithOut Man, woman, The | 1266 | @ref{Top, WoMan, Browse UN*X Manual Pages WithOut Man, woman, The |
| @@ -1336,7 +1341,7 @@ Hide all top-level blocks (@code{hs-hide-all}). | |||
| 1336 | @item C-c @@ C-M-s | 1341 | @item C-c @@ C-M-s |
| 1337 | @itemx C-c @@ C-a | 1342 | @itemx C-c @@ C-a |
| 1338 | Show all blocks in the buffer (@code{hs-show-all}). | 1343 | Show all blocks in the buffer (@code{hs-show-all}). |
| 1339 | @item C-c @@ C-l | 1344 | @item C-u @var{n} C-c @@ C-l |
| 1340 | Hide all blocks @var{n} levels below this block | 1345 | Hide all blocks @var{n} levels below this block |
| 1341 | (@code{hs-hide-level}). | 1346 | (@code{hs-hide-level}). |
| 1342 | @end table | 1347 | @end table |
| @@ -1458,8 +1463,8 @@ the menu item named @samp{Source Code Parsers (Semantic)} in the | |||
| 1458 | 1463 | ||
| 1459 | When Semantic mode is enabled, Emacs automatically attempts to | 1464 | When Semantic mode is enabled, Emacs automatically attempts to |
| 1460 | parse each file you visit. Currently, Semantic understands C, C++, | 1465 | parse each file you visit. Currently, Semantic understands C, C++, |
| 1461 | Scheme, Javascript, Java, HTML, and Make. Within each parsed buffer, | 1466 | Javascript, Java, HTML, Make, Python, Scheme, SRecode, and Texinfo. |
| 1462 | the following commands are available: | 1467 | Within each parsed buffer, the following commands are available: |
| 1463 | 1468 | ||
| 1464 | @table @kbd | 1469 | @table @kbd |
| 1465 | @item C-c , j | 1470 | @item C-c , j |
| @@ -1476,10 +1481,10 @@ parsed, and move point there (@code{semantic-complete-jump}). | |||
| 1476 | @kindex C-c , SPC | 1481 | @kindex C-c , SPC |
| 1477 | Display a list of possible completions for the symbol at point | 1482 | Display a list of possible completions for the symbol at point |
| 1478 | (@code{semantic-complete-analyze-inline}). This also activates a set | 1483 | (@code{semantic-complete-analyze-inline}). This also activates a set |
| 1479 | of special key bindings for choosing a completion: @key{RET} accepts | 1484 | of special key bindings for choosing a completion: @kbd{@key{RET}} |
| 1480 | the current completion, @kbd{M-n} and @kbd{M-p} cycle through possible | 1485 | accepts the current completion, @kbd{M-n} and @kbd{M-p} cycle through |
| 1481 | completions, @key{TAB} completes as far as possible and then cycles, | 1486 | possible completions, @kbd{@key{TAB}} completes as far as possible and |
| 1482 | and @kbd{C-g} or any other key aborts completion. | 1487 | then cycles, and @kbd{C-g} or any other key aborts completion. |
| 1483 | 1488 | ||
| 1484 | @item C-c , l | 1489 | @item C-c , l |
| 1485 | @kindex C-c , l | 1490 | @kindex C-c , l |
| @@ -1503,7 +1508,7 @@ is idle. | |||
| 1503 | programs are useful for that nonetheless. | 1508 | programs are useful for that nonetheless. |
| 1504 | 1509 | ||
| 1505 | The Emacs commands that operate on words, sentences and paragraphs | 1510 | The Emacs commands that operate on words, sentences and paragraphs |
| 1506 | are useful for editing code. Most symbols names contain words | 1511 | are useful for editing code. Most symbol names contain words |
| 1507 | (@pxref{Words}), while sentences can be found in strings and comments | 1512 | (@pxref{Words}), while sentences can be found in strings and comments |
| 1508 | (@pxref{Sentences}). As for paragraphs, they are defined in most | 1513 | (@pxref{Sentences}). As for paragraphs, they are defined in most |
| 1509 | programming language modes to begin and end at blank lines | 1514 | programming language modes to begin and end at blank lines |
| @@ -1678,8 +1683,9 @@ electric characters are @kbd{@{}, @kbd{@}}, @kbd{:}, @kbd{#}, | |||
| 1678 | You might find electric indentation inconvenient if you are editing | 1683 | You might find electric indentation inconvenient if you are editing |
| 1679 | chaotically indented code. If you are new to CC Mode, you might find | 1684 | chaotically indented code. If you are new to CC Mode, you might find |
| 1680 | it disconcerting. You can toggle electric action with the command | 1685 | it disconcerting. You can toggle electric action with the command |
| 1681 | @kbd{C-c C-l}; when it is enabled, @samp{/l} appears in the mode line | 1686 | @kbd{C-c C-l}; when it is enabled, @samp{/@var{c}l} appears in the |
| 1682 | after the mode name: | 1687 | mode line after the mode name (where @var{c}, if present, is @samp{*} |
| 1688 | or @samp{/}): | ||
| 1683 | 1689 | ||
| 1684 | @table @kbd | 1690 | @table @kbd |
| 1685 | @item C-c C-l | 1691 | @item C-c C-l |
| @@ -1692,8 +1698,8 @@ negative one it disables it. | |||
| 1692 | 1698 | ||
| 1693 | Electric characters insert newlines only when, in addition to the | 1699 | Electric characters insert newlines only when, in addition to the |
| 1694 | electric state, the @dfn{auto-newline} feature is enabled (indicated | 1700 | electric state, the @dfn{auto-newline} feature is enabled (indicated |
| 1695 | by @samp{/la} in the mode line after the mode name). You can turn | 1701 | by @samp{/@var{c}la} in the mode line after the mode name). You can |
| 1696 | this feature on or off with the command @kbd{C-c C-a}: | 1702 | turn this feature on or off with the command @kbd{C-c C-a}: |
| 1697 | 1703 | ||
| 1698 | @table @kbd | 1704 | @table @kbd |
| 1699 | @item C-c C-a | 1705 | @item C-c C-a |
| @@ -1737,10 +1743,11 @@ Delete the entire block of whitespace after point (@code{c-hungry-delete-forward | |||
| 1737 | @end table | 1743 | @end table |
| 1738 | 1744 | ||
| 1739 | As an alternative to the above commands, you can enable @dfn{hungry | 1745 | As an alternative to the above commands, you can enable @dfn{hungry |
| 1740 | delete mode}. When this feature is enabled (indicated by @samp{/h} in | 1746 | delete mode}. When this feature is enabled (indicated by @samp{h} |
| 1741 | the mode line after the mode name), a single @key{DEL} deletes all | 1747 | after a @samp{/} in the mode line after the mode name), a single |
| 1742 | preceding whitespace, not just one space, and a single @kbd{C-d} | 1748 | @kbd{@key{DEL}} deletes all preceding whitespace, not just one space, |
| 1743 | (but @emph{not} plain @key{Delete}) deletes all following whitespace. | 1749 | and a single @kbd{C-d} (but @emph{not} plain @kbd{@key{Delete}}) |
| 1750 | deletes all following whitespace. | ||
| 1744 | 1751 | ||
| 1745 | @table @kbd | 1752 | @table @kbd |
| 1746 | @item M-x c-toggle-hungry-state | 1753 | @item M-x c-toggle-hungry-state |
| @@ -1763,14 +1770,14 @@ hungry-delete feature is enabled. | |||
| 1763 | @findex c-context-line-break | 1770 | @findex c-context-line-break |
| 1764 | This command inserts a line break and indents the new line in a manner | 1771 | This command inserts a line break and indents the new line in a manner |
| 1765 | appropriate to the context. In normal code, it does the work of | 1772 | appropriate to the context. In normal code, it does the work of |
| 1766 | @key{RET} (@code{newline}), in a C preprocessor line it additionally | 1773 | @kbd{@key{RET}} (@code{newline}), in a C preprocessor line it additionally |
| 1767 | inserts a @samp{\} at the line break, and within comments it's like | 1774 | inserts a @samp{\} at the line break, and within comments it's like |
| 1768 | @kbd{M-j} (@code{c-indent-new-comment-line}). | 1775 | @kbd{M-j} (@code{c-indent-new-comment-line}). |
| 1769 | 1776 | ||
| 1770 | @code{c-context-line-break} isn't bound to a key by default, but it | 1777 | @code{c-context-line-break} isn't bound to a key by default, but it |
| 1771 | needs a binding to be useful. The following code will bind it to | 1778 | needs a binding to be useful. The following code will bind it to |
| 1772 | @key{RET}. We use @code{c-initialization-hook} here to make sure | 1779 | @kbd{@key{RET}}. We use @code{c-initialization-hook} here to make |
| 1773 | the keymap is loaded before we try to change it. | 1780 | sure the keymap is loaded before we try to change it. |
| 1774 | 1781 | ||
| 1775 | @example | 1782 | @example |
| 1776 | (defun my-bind-clb () | 1783 | (defun my-bind-clb () |
| @@ -1895,11 +1902,14 @@ defines these commands: | |||
| 1895 | @item @key{TAB} | 1902 | @item @key{TAB} |
| 1896 | @code{tab-to-tab-stop}. | 1903 | @code{tab-to-tab-stop}. |
| 1897 | @c FIXME: Maybe this should be consistent with other programming modes. | 1904 | @c FIXME: Maybe this should be consistent with other programming modes. |
| 1905 | |||
| 1898 | @item C-j | 1906 | @item C-j |
| 1899 | Insert a newline and then indent using @code{tab-to-tab-stop}. | 1907 | Insert a newline and then indent using @code{tab-to-tab-stop}. |
| 1908 | |||
| 1900 | @item : | 1909 | @item : |
| 1901 | Insert a colon and then remove the indentation from before the label | 1910 | Insert a colon and then remove the indentation from before the label |
| 1902 | preceding colon. Then do @code{tab-to-tab-stop}. | 1911 | preceding colon. Then do @code{tab-to-tab-stop}. |
| 1912 | |||
| 1903 | @item ; | 1913 | @item ; |
| 1904 | Insert or align a comment. | 1914 | Insert or align a comment. |
| 1905 | @end table | 1915 | @end table |
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index 45407b21098..e753ab55196 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -1684,7 +1684,7 @@ when you type the corresponding one. | |||
| 1684 | @node TeX Print | 1684 | @node TeX Print |
| 1685 | @subsection @TeX{} Printing Commands | 1685 | @subsection @TeX{} Printing Commands |
| 1686 | 1686 | ||
| 1687 | You can invoke @TeX{} as an subprocess of Emacs, supplying either | 1687 | You can invoke @TeX{} as a subprocess of Emacs, supplying either |
| 1688 | the entire contents of the buffer or just part of it (e.g., one | 1688 | the entire contents of the buffer or just part of it (e.g., one |
| 1689 | chapter of a larger document). | 1689 | chapter of a larger document). |
| 1690 | 1690 | ||
| @@ -1736,7 +1736,7 @@ C-p} (@code{tex-print}) to print a hardcopy of the output file. | |||
| 1736 | output of @TeX{} also goes in this directory. To run @TeX{} in a | 1736 | output of @TeX{} also goes in this directory. To run @TeX{} in a |
| 1737 | different directory, change the variable @code{tex-directory} to | 1737 | different directory, change the variable @code{tex-directory} to |
| 1738 | the desired directory. If your environment variable @env{TEXINPUTS} | 1738 | the desired directory. If your environment variable @env{TEXINPUTS} |
| 1739 | contains relative names, or if your files contains | 1739 | contains relative names, or if your files contain |
| 1740 | @samp{\input} commands with relative file names, then | 1740 | @samp{\input} commands with relative file names, then |
| 1741 | @code{tex-directory} @emph{must} be @code{"."} or you will get the | 1741 | @code{tex-directory} @emph{must} be @code{"."} or you will get the |
| 1742 | wrong results. Otherwise, it is safe to specify some other directory, | 1742 | wrong results. Otherwise, it is safe to specify some other directory, |
| @@ -2007,7 +2007,7 @@ used as a cheap preview (@code{sgml-tags-invisible}). | |||
| 2007 | @findex nxml-mode | 2007 | @findex nxml-mode |
| 2008 | @cindex XML schema | 2008 | @cindex XML schema |
| 2009 | The major mode for editing XML documents is called nXML mode. This | 2009 | The major mode for editing XML documents is called nXML mode. This |
| 2010 | is a powerful major mode that can recognize many existing XML schema | 2010 | is a powerful major mode that can recognize many existing XML schemas |
| 2011 | and use them to provide completion of XML elements via | 2011 | and use them to provide completion of XML elements via |
| 2012 | @kbd{M-@key{TAB}}, as well as on-the-fly XML | 2012 | @kbd{M-@key{TAB}}, as well as on-the-fly XML |
| 2013 | validation with error highlighting. To enable nXML mode in an | 2013 | validation with error highlighting. To enable nXML mode in an |
| @@ -2280,7 +2280,7 @@ Prompt for a color, and apply it as a background color. | |||
| 2280 | @end table | 2280 | @end table |
| 2281 | 2281 | ||
| 2282 | @noindent | 2282 | @noindent |
| 2283 | These command are also available via the Text Properties menu. | 2283 | These commands are also available via the Text Properties menu. |
| 2284 | 2284 | ||
| 2285 | A self-inserting character normally inherits the face properties | 2285 | A self-inserting character normally inherits the face properties |
| 2286 | (and most other text properties) from the preceding character in the | 2286 | (and most other text properties) from the preceding character in the |