aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-02-15 20:38:13 +0200
committerEli Zaretskii2018-02-15 20:38:13 +0200
commitb46be29424cc84982cf8b0cad8f3fdbc98e1c8e0 (patch)
treea9141ac102e5f03939798b35d3e8339f72e85db4
parent874c0edf30308392bdba870e92247d7e4b0e66f4 (diff)
downloademacs-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.texi42
-rw-r--r--doc/emacs/help.texi2
-rw-r--r--doc/emacs/msdos.texi3
-rw-r--r--doc/emacs/programs.texi86
-rw-r--r--doc/emacs/text.texi8
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
159Break the current line at point and set up a continuation line 159Break 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-^
162Join this line to the previous line (@code{fortran-join-line}). 163Join this line to the previous line (@code{fortran-join-line}).
164
163@item C-M-q 165@item C-M-q
164Indent all the lines of the subprogram that point is in 166Indent 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
167Fill a comment block or statement (using @code{fortran-fill-paragraph} 170Fill a comment block or statement (using @code{fortran-fill-paragraph}
168or @code{fortran-fill-statement}). 171or @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},
189which joins a continuation line back to the previous line, roughly as 192which joins a continuation line back to the previous line, roughly as
190the inverse of @code{fortran-split-line}. The point must be on a 193the inverse of @code{fortran-split-line}. The point must be on a
191continuation line when this command is invoked. 194continuation line when this command is invoked.
@@ -203,7 +206,9 @@ point is in. This removes any excess statement continuations.
203If the first non-space character on a line is in column 5, then that 206If the first non-space character on a line is in column 5, then that
204line is a continuation of the previous line. We call this @dfn{fixed 207line is a continuation of the previous line. We call this @dfn{fixed
205form}. (In GNU Emacs we always count columns from 0; but note that 208form}. (In GNU Emacs we always count columns from 0; but note that
206the Fortran standard counts from 1.) The variable 209the Fortran standard counts from 1. You can customize the variable
210@code{column-number-indicator-zero-based} to make the column display
211Fortran-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
208column 5. A line that starts with a tab character followed by any digit 213column 5. A line that starts with a tab character followed by any digit
209except @samp{0} is also a continuation line. We call this style of 214except @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
2315, Fortran mode treats it as a continuation line. When you indent a 2365, Fortran mode treats it as a continuation line. When you indent a
232continuation line with @key{TAB}, it converts the line to the current 237continuation line with @kbd{@key{TAB}}, it converts the line to the
233continuation style. When you split a Fortran statement with 238current 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
235to the continuation style. 240according 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
238editing in Fortran mode. In fixed form mode, the minimum column 243editing 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
249indentation assumes it is a line number and moves it to columns 0 254indentation assumes it is a line number and moves it to columns 0
250through 4. (Columns always count from 0 in Emacs.) 255through 4. (Columns always count from 0 in Emacs, but setting
256@code{column-number-indicator-zero-based} to @code{nil} can change
257that, @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},
320Extra indentation for bodies of continuation lines (default 5). 327Extra 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
323In Fortran 77, a numbered @samp{do} statement is ended by any statement 330In Fortran 77, a numbered @samp{do} statement is terminated by any statement
324with a matching line number. It is common (but not compulsory) to use a 331with 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
326non-@code{nil} value, indenting any numbered statement must check for a 333non-@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
333If this is @code{t}, indenting an @samp{endif} (or @samp{enddo} 340If this is @code{t}, indenting an @samp{endif} (or @samp{enddo})
334statement moves the cursor momentarily to the matching @samp{if} (or 341statement 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
388full-line comment is inserted. On a non-blank line, a nonstandard @samp{!} 395full-line comment is inserted. On a non-blank line, a nonstandard @samp{!}
389comment is inserted if you have said you want to use them. Otherwise a 396comment is inserted if you have said you want to use them. Otherwise, a
390full-line comment is inserted on a new line before the current line. 397full-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})
436has not been redefined. If you use @samp{!} comments, this command 443has not been redefined. If you use @samp{!} comments, this command
437can be used with them. Otherwise it is useless in Fortran mode. 444can 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
457when they become too wide. Splitting a statement involves making 464when they become too wide. Splitting a statement involves making
458continuation lines using @code{fortran-continuation-string} 465continuation 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
461indentation commands. You activate Auto Fill in Fortran mode in the 468Fortran indentation commands. You activate Auto Fill in Fortran mode
462normal way. 469in 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
502Display a column ruler momentarily above the current line 509Display 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
505Split the current window horizontally temporarily so that it is 513Split 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
508making lines longer than the limit imposed by your Fortran compiler. 516making 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
510Split the current window horizontally so that it is 519Split 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}).
512You can then continue editing. 521You can then continue editing.
522
513@item M-x fortran-strip-sequence-nos 523@item M-x fortran-strip-sequence-nos
514Delete all text in column @code{fortran-line-length} and beyond. 524Delete 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
523numbers, and curly brackets show the limits of the columns for the 533numbers, and curly brackets show the limits of the columns for the
524statement body. Column numbers appear above them. 534statement 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
538column display to match that of Fortran; @pxref{Optional Mode Line}).
527As a result, the numbers may be one less than those you are familiar 539As a result, the numbers may be one less than those you are familiar
528with; but the positions they indicate in the line are standard for 540with; but the positions they indicate in the line are standard for
529Fortran. 541Fortran.
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
643Display the Emacs frequently-answered-questions list (@code{view-emacs-FAQ}). 643Display the Emacs frequently-answered-questions list (@code{view-emacs-FAQ}).
644@item C-h g 644@item C-h g
645Visit a @uref{https://www.gnu.org} page with information about the GNU 645Visit the @uref{https://www.gnu.org, page} with information about the GNU
646Project (@code{describe-gnu-project}). 646Project (@code{describe-gnu-project}).
647@item C-h C-m 647@item C-h C-m
648Display information about ordering printed copies of Emacs manuals 648Display 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
1037anywhere 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
88Scheme-based DSSSL expression language, Ada, ASM, AWK, C, C++, 88Scheme-based DSSSL expression language, Ada, ASM, AWK, C, C++,
89Fortran, Icon, IDL (CORBA), IDLWAVE, Java, Javascript, Metafont 89Fortran, Icon, IDL (CORBA), IDLWAVE, Java, Javascript, M4, Makefiles,
90(@TeX{}'s companion for font creation), Modula2, Object Pascal, 90Metafont (@TeX{}'s companion for font creation), Modula2, Object
91Objective-C, Octave, Pascal, Perl, Pike, PostScript, Prolog, Python, 91Pascal, Objective-C, Octave, Pascal, Perl, Pike, PostScript, Prolog,
92Ruby, Simula, SQL, Tcl, Verilog, and VHDL@. An alternative mode for 92Python, Ruby, Simula, SQL, Tcl, Verilog, and VHDL@. An alternative
93Perl is called CPerl mode. Modes are also available for the scripting 93mode for Perl is called CPerl mode. Modes are also available for the
94languages of the common GNU and Unix shells, and MS-DOS/MS-Windows 94scripting languages of the common GNU and Unix shells, and
95@samp{BAT} files, and for makefiles, DNS master files, and various 95MS-DOS/MS-Windows @samp{BAT} files, and for makefiles, DNS master
96sorts of configuration files. 96files, 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
99language that you might want to edit. If it doesn't have a mode for 99language 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
403aesthetic purposes), the lines below will follow it. 403aesthetic 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
406that a open-parenthesis, open-brace or other opening delimiter at the 406that an open-parenthesis, open-brace or other opening delimiter at the
407left margin is the start of a function. If the code you are editing 407left margin is the start of a function. If the code you are editing
408violates this assumption---even if the delimiters occur in strings or 408violates this assumption---even if the delimiters occur in strings or
409comments---you must set @code{open-paren-in-column-0-is-defun-start} 409comments---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
927comments. For example, in Lisp code, comments starting with two 927comments. For example, in Lisp code, comments starting with two
928semicolons are indented as if they were lines of code, while those 928semicolons are indented as if they were lines of code, while those
929starting with three semicolons are supposed to be aligned to the left 929starting with three semicolons are supposed to be aligned to the left
930margin and are often used for sectioning purposes. Emacs understand 930margin and are often used for sectioning purposes. Emacs understands
931these conventions; for instance, typing @kbd{@key{TAB}} on a comment 931these conventions; for instance, typing @kbd{@key{TAB}} on a comment
932line will indent the comment to the appropriate position. 932line will indent the comment to the appropriate position.
933 933
@@ -958,7 +958,9 @@ line will indent the comment to the appropriate position.
958Insert or realign comment on current line; if the region is active, 958Insert or realign comment on current line; if the region is active,
959comment or uncomment the region instead (@code{comment-dwim}). 959comment or uncomment the region instead (@code{comment-dwim}).
960@item @kbd{C-x C-;} 960@item @kbd{C-x C-;}
961Comment or uncomment the current line (@code{comment-line}). 961Comment or uncomment the current line (@code{comment-line}). If the
962region is active, comment or uncomment the lines in the region
963instead.
962@item @kbd{C-u M-;} 964@item @kbd{C-u M-;}
963Kill comment on current line (@code{comment-kill}). 965Kill 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,
1045this command is bound to @kbd{C-c C-c}. The command @kbd{M-x 1047this command is bound to @kbd{C-c C-c}. The command @kbd{M-x
1046uncomment-region} uncomments each line in the region; a numeric prefix 1048uncomment-region} uncomments each line in the region; a numeric prefix
1047argument specifies the number of comment delimiters to remove 1049argument 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).
1049add).
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
1052setting the variables @code{c-indent-comment-alist} and 1053setting the variables @code{c-indent-comment-alist} and
@@ -1151,8 +1152,8 @@ comment or for aligning an existing comment. It is set differently by
1151various major modes. The function is called with no arguments, but with 1152various major modes. The function is called with no arguments, but with
1152point at the beginning of the comment, or at the end of a line if a new 1153point at the beginning of the comment, or at the end of a line if a new
1153comment is to be inserted. It should return the column in which the 1154comment is to be inserted. It should return the column in which the
1154comment ought to start. For example, the default hook function bases 1155comment ought to start. For example, the default function bases its
1155its decision on how many comment characters begin an existing comment. 1156decision on how many comment characters begin an existing comment.
1156 1157
1157Emacs also tries to align comments on adjacent lines. To override 1158Emacs also tries to align comments on adjacent lines. To override
1158this, the function may return a cons of two (possibly equal) integers 1159this, 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
1183the C Library Manual. The command only works if the appropriate 1184the C Library Manual. The command only works if the appropriate
1184manual's Info files are installed. 1185manual'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
1187symbol---which Info files to look in, and which indices to search. 1188symbol---which Info files to look in, and which indices to
1188You can also use @kbd{M-x info-lookup-file} to look for documentation 1189search---based on the major mode. You can also use @kbd{M-x
1189for a file name. 1190info-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,
1192it asks you to specify the symbol help mode. You should enter 1193it 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
1256pops up a window with possible candidates asking you to choose one of 1257pops up a window with possible candidates asking you to choose one of
1257them. 1258them.
1258 1259
1260 Note that @kbd{M-x woman} doesn't yet support the latest features of
1261modern man pages, so we recommend using @kbd{M-x man} if that is
1262available 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
1338Show all blocks in the buffer (@code{hs-show-all}). 1343Show 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
1340Hide all blocks @var{n} levels below this block 1345Hide 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
1460parse each file you visit. Currently, Semantic understands C, C++, 1465parse each file you visit. Currently, Semantic understands C, C++,
1461Scheme, Javascript, Java, HTML, and Make. Within each parsed buffer, 1466Javascript, Java, HTML, Make, Python, Scheme, SRecode, and Texinfo.
1462the following commands are available: 1467Within 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
1477Display a list of possible completions for the symbol at point 1482Display 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
1479of special key bindings for choosing a completion: @key{RET} accepts 1484of special key bindings for choosing a completion: @kbd{@key{RET}}
1480the current completion, @kbd{M-n} and @kbd{M-p} cycle through possible 1485accepts the current completion, @kbd{M-n} and @kbd{M-p} cycle through
1481completions, @key{TAB} completes as far as possible and then cycles, 1486possible completions, @kbd{@key{TAB}} completes as far as possible and
1482and @kbd{C-g} or any other key aborts completion. 1487then 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.
1503programs are useful for that nonetheless. 1508programs 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
1506are useful for editing code. Most symbols names contain words 1511are 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
1509programming language modes to begin and end at blank lines 1514programming 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
1679chaotically indented code. If you are new to CC Mode, you might find 1684chaotically indented code. If you are new to CC Mode, you might find
1680it disconcerting. You can toggle electric action with the command 1685it 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
1682after the mode name: 1687mode line after the mode name (where @var{c}, if present, is @samp{*}
1688or @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
1694electric state, the @dfn{auto-newline} feature is enabled (indicated 1700electric state, the @dfn{auto-newline} feature is enabled (indicated
1695by @samp{/la} in the mode line after the mode name). You can turn 1701by @samp{/@var{c}la} in the mode line after the mode name). You can
1696this feature on or off with the command @kbd{C-c C-a}: 1702turn 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
1740delete mode}. When this feature is enabled (indicated by @samp{/h} in 1746delete mode}. When this feature is enabled (indicated by @samp{h}
1741the mode line after the mode name), a single @key{DEL} deletes all 1747after a @samp{/} in the mode line after the mode name), a single
1742preceding 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. 1749and a single @kbd{C-d} (but @emph{not} plain @kbd{@key{Delete}})
1750deletes 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
1764This command inserts a line break and indents the new line in a manner 1771This command inserts a line break and indents the new line in a manner
1765appropriate to the context. In normal code, it does the work of 1772appropriate 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
1767inserts a @samp{\} at the line break, and within comments it's like 1774inserts 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
1771needs a binding to be useful. The following code will bind it to 1778needs 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
1773the keymap is loaded before we try to change it. 1780sure 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
1899Insert a newline and then indent using @code{tab-to-tab-stop}. 1907Insert a newline and then indent using @code{tab-to-tab-stop}.
1908
1900@item : 1909@item :
1901Insert a colon and then remove the indentation from before the label 1910Insert a colon and then remove the indentation from before the label
1902preceding colon. Then do @code{tab-to-tab-stop}. 1911preceding colon. Then do @code{tab-to-tab-stop}.
1912
1903@item ; 1913@item ;
1904Insert or align a comment. 1914Insert 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
1688the entire contents of the buffer or just part of it (e.g., one 1688the entire contents of the buffer or just part of it (e.g., one
1689chapter of a larger document). 1689chapter of a larger document).
1690 1690
@@ -1736,7 +1736,7 @@ C-p} (@code{tex-print}) to print a hardcopy of the output file.
1736output of @TeX{} also goes in this directory. To run @TeX{} in a 1736output of @TeX{} also goes in this directory. To run @TeX{} in a
1737different directory, change the variable @code{tex-directory} to 1737different directory, change the variable @code{tex-directory} to
1738the desired directory. If your environment variable @env{TEXINPUTS} 1738the desired directory. If your environment variable @env{TEXINPUTS}
1739contains relative names, or if your files contains 1739contains 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
1742wrong results. Otherwise, it is safe to specify some other directory, 1742wrong 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
2010is a powerful major mode that can recognize many existing XML schema 2010is a powerful major mode that can recognize many existing XML schemas
2011and use them to provide completion of XML elements via 2011and 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
2013validation with error highlighting. To enable nXML mode in an 2013validation 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
2283These command are also available via the Text Properties menu. 2283These 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