aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-02-19 03:15:37 +0000
committerRichard M. Stallman2001-02-19 03:15:37 +0000
commit2e6d3a80e05a06306a56902fa18973e7ddb3fcb1 (patch)
tree6bf9c2beaa330c26fe9c1362d4936b495507ccae
parent2e2cdb68cdfd13dc8a3c1ce4e80d192cd1dd4e6d (diff)
downloademacs-2e6d3a80e05a06306a56902fa18973e7ddb3fcb1.tar.gz
emacs-2e6d3a80e05a06306a56902fa18973e7ddb3fcb1.zip
Move the Refill Mode node.
Move the TeX mode miscellany to a new node. Clean up the Foldout node. Other minor changes.
-rw-r--r--man/text.texi253
1 files changed, 130 insertions, 123 deletions
diff --git a/man/text.texi b/man/text.texi
index cd0c13e3d31..e9dc5991e3a 100644
--- a/man/text.texi
+++ b/man/text.texi
@@ -50,7 +50,7 @@ Then the formatting appears on the screen in Emacs while you edit.
50@xref{Formatted Text}. 50@xref{Formatted Text}.
51@end iftex 51@end iftex
52 52
53 The `automatic typing' features may be useful when writing text. 53 The ``automatic typing'' features may be useful when writing text.
54@xref{Top, Autotyping, autotype, Features for Automatic Typing}. 54@xref{Top, Autotyping, autotype, Features for Automatic Typing}.
55 55
56@menu 56@menu
@@ -388,11 +388,11 @@ Text}).
388 388
389@menu 389@menu
390* Auto Fill:: Auto Fill mode breaks long lines automatically. 390* Auto Fill:: Auto Fill mode breaks long lines automatically.
391* Refill:: Keeping paragraphs filled.
391* Fill Commands:: Commands to refill paragraphs and center lines. 392* Fill Commands:: Commands to refill paragraphs and center lines.
392* Fill Prefix:: Filling paragraphs that are indented 393* Fill Prefix:: Filling paragraphs that are indented
393 or in a comment, etc. 394 or in a comment, etc.
394* Adaptive Fill:: How Emacs can determine the fill prefix automatically. 395* Adaptive Fill:: How Emacs can determine the fill prefix automatically.
395* Refill:: Keeping paragraphs filled.
396@end menu 396@end menu
397 397
398@node Auto Fill 398@node Auto Fill
@@ -453,6 +453,25 @@ paragraph properly filled again is usually with the explicit fill commands.
453The section on init files says how to arrange this permanently for yourself. 453The section on init files says how to arrange this permanently for yourself.
454@xref{Init File}. 454@xref{Init File}.
455 455
456@node Refill
457@subsection Refill Mode
458@cindex refilling text, word processor style
459@cindex modes, Refill
460@cindex Refill minor mode
461
462 Refill minor mode provides support for keeping paragraphs filled as
463you type or modify them in other ways. It provides an effect similar
464to typical word processor behaviour. This works by running a
465paragraph-filling command at suitable times.
466
467 When you are typing text, only characters which normally trigger
468auto filling, like the space character, will trigger refilling. This
469is to avoid making it too slow. Apart from self-inserting characters,
470other commands which modify the text cause refilling.
471
472 The current implementation is preliminary and probably not robust.
473We expect to improve on it.
474
456@node Fill Commands 475@node Fill Commands
457@subsection Explicit Fill Commands 476@subsection Explicit Fill Commands
458 477
@@ -534,10 +553,10 @@ two spaces for the end of a sentence, as explained above. @xref{Sentences}.
534fill commands put two spaces after a colon. 553fill commands put two spaces after a colon.
535 554
536@vindex sentence-end-without-period 555@vindex sentence-end-without-period
537The variable @code{sentence-end-without-period} can be set 556 Some languages do not use period to indicate end of sentence. For
538non-@code{nil} to indicate that a sentence will end without a period. 557example, a sentence in Thai text ends with double space but without a
539For example, a sentence in Thai text ends with double space but without 558period. Set the variable @code{sentence-end-without-period} to
540a period. 559@code{t} to tell the sentence commands that a period is not necessary.
541 560
542@node Fill Prefix 561@node Fill Prefix
543@subsection The Fill Prefix 562@subsection The Fill Prefix
@@ -699,25 +718,6 @@ line, and it should return the appropriate fill prefix based on that
699line. If it returns @code{nil}, that means it sees no fill prefix in 718line. If it returns @code{nil}, that means it sees no fill prefix in
700that line. 719that line.
701 720
702@node Refill
703@subsection Refill Mode
704@cindex refilling text, word processor style
705@cindex modes, Refill
706@cindex Refill minor mode
707
708Refill minor mode provides support for keeping paragraphs filled as you
709type or modify them in other ways. It provides an effect similar to
710typical word processor behaviour. This works by running a
711paragraph-filling command at suitable times.
712
713When you are typing text, only characters which normally trigger auto
714filling, like the space character, will trigger refilling. This is to
715avoid making it too slow. Apart from self-inserting characters, other
716commands which modify the text cause refilling.
717
718The current implementation is preliminary and probably not robust. We
719expect to improve on it.
720
721@node Case 721@node Case
722@section Case Conversion Commands 722@section Case Conversion Commands
723@cindex case conversion 723@cindex case conversion
@@ -962,12 +962,12 @@ so that Outline mode will know that sections are contained in chapters.
962This works as long as no other command starts with @samp{@@chap}. 962This works as long as no other command starts with @samp{@@chap}.
963 963
964@vindex outline-level 964@vindex outline-level
965 It is possible to change the rule for calculating the level of a 965 You can change the rule for calculating the level of a heading line
966heading line by setting the variable @code{outline-level}. The value of 966by setting the variable @code{outline-level}. The value of
967@code{outline-level} should be a function that takes no arguments and 967@code{outline-level} should be a function that takes no arguments and
968returns the level of the current heading. Some major modes such as C, 968returns the level of the current heading. Some major modes such as C,
969Nroff, and Emacs Lisp mode set this variable and/or 969Nroff, and Emacs Lisp mode set this variable and @code{outline-regexp}
970@code{outline-regexp} in order to work with Outline minor mode. 970in order to work with Outline minor mode.
971 971
972@node Outline Motion 972@node Outline Motion
973@subsection Outline Motion Commands 973@subsection Outline Motion Commands
@@ -1149,28 +1149,23 @@ want more than two views on the same outline, create additional indirect
1149buffers. 1149buffers.
1150 1150
1151@node Foldout 1151@node Foldout
1152@subsection Folding editing 1152@subsection Folding Editing
1153 1153
1154@cindex folding editing 1154@cindex folding editing
1155The Foldout package provides folding editor extensions for Outline mode 1155 The Foldout package extends Outline mode and Outline minor mode with
1156and Outline minor mode. It may be used by putting in your @file{.emacs} 1156``folding'' commands. The idea of folding is that you zoom in on a
1157nested portion of the outline, while hiding its relatives at higher
1158levels.
1157 1159
1158@example 1160 Consider an Outline mode buffer all the text and subheadings under
1159(eval-after-load "outline" '(require 'foldout))
1160@end example
1161
1162@noindent
1163Folding editing works as follows.
1164
1165Consider an Outline mode buffer all the text and subheadings under
1166level-1 headings hidden. To look at what is hidden under one of these 1161level-1 headings hidden. To look at what is hidden under one of these
1167headings normally you would use @kbd{C-c C-e} (@kbd{M-x show-entry}) to 1162headings, you could use @kbd{C-c C-e} (@kbd{M-x show-entry}) to expose
1168expose the body or @kbd{C-c C-i} to expose the child (level-2) headings. 1163the body, or @kbd{C-c C-i} to expose the child (level-2) headings.
1169 1164
1170@kindex C-c C-z 1165@kindex C-c C-z
1171@findex foldout-zoom-subtree 1166@findex foldout-zoom-subtree
1172With Foldout, you use @kbd{C-c C-z} (@kbd{M-x foldout-zoom-subtree}). 1167 With Foldout, you use @kbd{C-c C-z} (@kbd{M-x foldout-zoom-subtree}).
1173This exposes the body and child subheadings and narrows the buffer so 1168This exposes the body and child subheadings, and narrows the buffer so
1174that only the level-1 heading, the body and the level-2 headings are 1169that only the level-1 heading, the body and the level-2 headings are
1175visible. Now to look under one of the level-2 headings, position the 1170visible. Now to look under one of the level-2 headings, position the
1176cursor on it and use @kbd{C-c C-z} again. This exposes the level-2 body 1171cursor on it and use @kbd{C-c C-z} again. This exposes the level-2 body
@@ -1178,7 +1173,7 @@ and its level-3 child subheadings and narrows the buffer again. Zooming
1178in on successive subheadings can be done as much as you like. A string 1173in on successive subheadings can be done as much as you like. A string
1179in the modeline shows how deep you've gone. 1174in the modeline shows how deep you've gone.
1180 1175
1181When zooming in on a heading, to see only the child subheadings specify 1176 When zooming in on a heading, to see only the child subheadings specify
1182a numeric argument: @kbd{C-u C-c C-z}. The number of levels of children 1177a numeric argument: @kbd{C-u C-c C-z}. The number of levels of children
1183can be specified too (compare @kbd{M-x show-children}), e.g.@: @kbd{M-2 1178can be specified too (compare @kbd{M-x show-children}), e.g.@: @kbd{M-2
1184C-c C-z} exposes two levels of child subheadings. Alternatively, the 1179C-c C-z} exposes two levels of child subheadings. Alternatively, the
@@ -1186,65 +1181,76 @@ body can be spcified with a negative argument: @kbd{M-- C-c C-z}. The
1186whole subtree can be expanded, similarly to @kbd{C-c C-s} (@kbd{M-x 1181whole subtree can be expanded, similarly to @kbd{C-c C-s} (@kbd{M-x
1187show-subtree}), by specifying a zero argument: @kbd{M-0 C-c C-z}. 1182show-subtree}), by specifying a zero argument: @kbd{M-0 C-c C-z}.
1188 1183
1189While you're zoomed in you can still use outline-mode's exposure and 1184 While you're zoomed in, you can still use Outline mode's exposure and
1190hiding functions without disturbing Foldout. Also, since the buffer is 1185hiding functions without disturbing Foldout. Also, since the buffer is
1191narrowed, `global' editing actions will only affect text under the 1186narrowed, ``global'' editing actions will only affect text under the
1192zoomed-in heading. This is useful for restricting changes to a 1187zoomed-in heading. This is useful for restricting changes to a
1193particular chapter or section of your document. 1188particular chapter or section of your document.
1194 1189
1195@kindex C-c C-x 1190@kindex C-c C-x
1196@findex foldout-exit-fold 1191@findex foldout-exit-fold
1197Unzoom (exit) a fold using @kbd{C-c C-x} (@kbd{M-x foldout-exit-fold}). 1192 To unzoom (exit) a fold, use @kbd{C-c C-x} (@kbd{M-x foldout-exit-fold}).
1198This hides all the text and subheadings under the top-level heading and 1193This hides all the text and subheadings under the top-level heading and
1199returns you to the previous view of the buffer. Specifying a numeric 1194returns you to the previous view of the buffer. Specifying a numeric
1200argument exits that many folds. Specifying a zero argument exits all 1195argument exits that many levels of folds. Specifying a zero argument exits all
1201folds. 1196folds.
1202 1197
1203You might want to exit a fold without hiding the text and subheadings, 1198 To cancel the narrowing of a fold without hiding the text and
1204specify a negative argument. For example, @kbd{M--2 C-c C-x} exits two 1199subheadings, specify a negative argument. For example, @kbd{M--2 C-c
1205folds and leaves the text and subheadings exposed. 1200C-x} exits two folds and leaves the text and subheadings exposed.
1201
1202 Foldout mode also provides mouse commands for entering and exiting
1203folds, and for showing and hiding text:
1206 1204
1207Foldout provides mouse bindings for entering and exiting folds and for
1208showing and hiding text as follows:
1209@table @asis 1205@table @asis
1210@item @kbd{M-C-mouse-1} zooms in on the heading clicked on 1206@item @kbd{M-C-Mouse-1} zooms in on the heading clicked on
1211@table @asis 1207@table @asis
1212@item single click 1208@item single click
1213expose body 1209expose body.
1214@item double click 1210@item double click
1215expose subheadings 1211expose subheadings.
1216@item triple click 1212@item triple click
1217expose body and subheadings 1213expose body and subheadings.
1218@item quad click 1214@item quad click
1219expose entire subtree 1215expose entire subtree.
1220@end table 1216@end table
1221@item @kbd{M-C-mouse-2} exposes text under the heading clicked on 1217@item @kbd{M-C-Mouse-2} exposes text under the heading clicked on
1222@table @r 1218@table @r
1223@item single click 1219@item single click
1224expose body 1220expose body.
1225@item double click 1221@item double click
1226expose subheadings 1222expose subheadings.
1227@item triple click 1223@item triple click
1228expose body and subheadings 1224expose body and subheadings.
1229@item quad click 1225@item quad click
1230expose entire subtree 1226expose entire subtree.
1231@end table 1227@end table
1232@item @kbd{M-C-mouse-3} hides text under the heading clicked on or exits fold 1228@item @kbd{M-C-Mouse-3} hides text under the heading clicked on or exits fold
1233@table @r 1229@table @r
1234@item single click 1230@item single click
1235hide subtree 1231hide subtree.
1236@item double click 1232@item double click
1237exit fold and hide text 1233exit fold and hide text.
1238@item triple click 1234@item triple click
1239exit fold without hiding text 1235exit fold without hiding text.
1240@item quad click 1236@item quad click
1241exit all folds and hide text 1237exit all folds and hide text.
1242@end table 1238@end table
1243@end table 1239@end table
1244 1240
1245@vindex foldout-mouse-modifiers 1241@vindex foldout-mouse-modifiers
1246You can change the modifier keys used by setting 1242 You can specify different modifier keys (instead of
1247@code{foldout-mouse-modifiers}. 1243@kbd{Control-Meta-}) by setting @code{foldout-mouse-modifiers}; but if
1244you have already loaded the @file{foldout.el} library, you must reload
1245it in order for this to take effect.
1246
1247 To use the Foldout package, you can type @kbd{M-x load-library
1248@key{RET} foldout @key{RET}}; or you can arrange for to do that
1249automatically by putting this in your @file{.emacs} file:
1250
1251@example
1252(eval-after-load "outline" '(require 'foldout))
1253@end example
1248 1254
1249@node TeX Mode, Nroff Mode, Outline Mode, Text 1255@node TeX Mode, Nroff Mode, Outline Mode, Text
1250@section @TeX{} Mode 1256@section @TeX{} Mode
@@ -1285,61 +1291,11 @@ If the contents are insufficient to determine this, the variable
1285slitex-mode} to select explicitly the particular variants of @TeX{} 1291slitex-mode} to select explicitly the particular variants of @TeX{}
1286mode. 1292mode.
1287 1293
1288@vindex tex-shell-hook
1289@vindex tex-mode-hook
1290@vindex latex-mode-hook
1291@vindex slitex-mode-hook
1292@vindex plain-tex-mode-hook
1293 Entering any kind of @TeX{} mode runs the hooks @code{text-mode-hook}
1294and @code{tex-mode-hook}. Then it runs either
1295@code{plain-tex-mode-hook} or @code{latex-mode-hook}, whichever is
1296appropriate. For Sli@TeX{} files, it calls @code{slitex-mode-hook}.
1297Starting the @TeX{} shell runs the hook @code{tex-shell-hook}.
1298@xref{Hooks}.
1299
1300@findex iso-iso2tex
1301@findex iso-tex2iso
1302@findex iso-iso2gtex
1303@findex iso-gtex2iso
1304@cindex Latin-1 @TeX{} encoding
1305@TeX{} encoding
1306@vindex format-alist
1307@findex format-find-file
1308The commands @kbd{M-x iso-iso2tex}, @kbd{M-x iso-tex2iso}, @kbd{M-x
1309iso-iso2gtex} and @kbd{M-x iso-gtex2iso} can be used to convert between
1310Latin-1 encoded files and @TeX{}-encoded equivalents. They are included
1311by default in the @code{format-alist} variable, and so an be used with
1312@kbd{M-x format-find-file}, for instance.
1313
1314@findex tildify-buffer
1315@findex tildify-region
1316@cindex ties, @TeX{}, inserting
1317@cindex hard spaces, @TeX{}, inserting
1318@cindex SGML
1319@cindex HTML
1320The commands @kbd{M-x tildify-buffer} and @kbd{M-x tildify-region} can
1321be used to insert missing @samp{~} @dfn{tie} characters which should be
1322present in the file to represent `hard spaces'. This is set up for
1323Czech---customize the group @samp{tildify} for other languages or for
1324other sorts of markup; there is support for SGML (HTML).
1325
1326@cindex RefTeX package
1327@cindex references, La@TeX{}
1328@cindex La@TeX{} references
1329 For managing all kinds of references for La@TeX{}, you can use
1330Ref@TeX{}. @xref{Top, , RefTeX, reftex}.
1331
1332@cindex Bib@TeX{} mode
1333@cindex mode, Bib@TeX{}
1334@pindex bibtex
1335@findex bibtex-mode
1336There is also a mode for editing files for the Bib@TeX{} bibliography
1337program often used with La@TeX{}.
1338
1339@menu 1294@menu
1340* Editing: TeX Editing. Special commands for editing in TeX mode. 1295* Editing: TeX Editing. Special commands for editing in TeX mode.
1341* LaTeX: LaTeX Editing. Additional commands for LaTeX input files. 1296* LaTeX: LaTeX Editing. Additional commands for LaTeX input files.
1342* Printing: TeX Print. Commands for printing part of a file with TeX. 1297* Printing: TeX Print. Commands for printing part of a file with TeX.
1298* Misc: TeX Misc. Customization of TeX mode, and related features.
1343@end menu 1299@end menu
1344 1300
1345@node TeX Editing 1301@node TeX Editing
@@ -1630,6 +1586,57 @@ current buffer's file. Generally, you need to do @kbd{C-c C-f}
1630@kbd{C-c TAB} (@code{tex-bibtex-file}), and then repeat @kbd{C-c C-f} 1586@kbd{C-c TAB} (@code{tex-bibtex-file}), and then repeat @kbd{C-c C-f}
1631(@code{tex-file}) twice more to get the cross-references correct. 1587(@code{tex-file}) twice more to get the cross-references correct.
1632 1588
1589@node TeX Misc
1590@subsection @TeX{} Mode Miscellany
1591
1592@vindex tex-shell-hook
1593@vindex tex-mode-hook
1594@vindex latex-mode-hook
1595@vindex slitex-mode-hook
1596@vindex plain-tex-mode-hook
1597 Entering any variant of @TeX{} mode runs the hooks
1598@code{text-mode-hook} and @code{tex-mode-hook}. Then it runs either
1599@code{plain-tex-mode-hook}, @code{latex-mode-hook}, or
1600@code{slitex-mode-hook}, whichever is appropriate. Starting the
1601@TeX{} shell runs the hook @code{tex-shell-hook}. @xref{Hooks}.
1602
1603@findex iso-iso2tex
1604@findex iso-tex2iso
1605@findex iso-iso2gtex
1606@findex iso-gtex2iso
1607@cindex Latin-1 @TeX{} encoding
1608@TeX{} encoding
1609@vindex format-alist
1610@findex format-find-file
1611 The commands @kbd{M-x iso-iso2tex}, @kbd{M-x iso-tex2iso}, @kbd{M-x
1612iso-iso2gtex} and @kbd{M-x iso-gtex2iso} can be used to convert
1613between Latin-1 encoded files and @TeX{}-encoded equivalents.
1614@ignore
1615@c Too cryptic to be useful, too cryptic for me to make it better -- rms.
1616 They
1617are included by default in the @code{format-alist} variable, so they
1618can be used with @kbd{M-x format-find-file}, for instance.
1619@end ignore
1620
1621@ignore @c Not worth documenting if it is only for Czech -- rms.
1622@findex tildify-buffer
1623@findex tildify-region
1624@cindex ties, @TeX{}, inserting
1625@cindex hard spaces, @TeX{}, inserting
1626@cindex SGML
1627@cindex HTML
1628 The commands @kbd{M-x tildify-buffer} and @kbd{M-x tildify-region}
1629insert @samp{~} (@dfn{tie}) characters where they are conventionally
1630required. This is set up for Czech---customize the group
1631@samp{tildify} for other languages or for other sorts of markup.
1632@end ignore
1633
1634@cindex Ref@TeX{} package
1635@cindex references, La@TeX{}
1636@cindex La@TeX{} references
1637 For managing all kinds of references for La@TeX{}, you can use
1638Ref@TeX{}. @xref{Top, , RefTeX, reftex}.
1639
1633@node Nroff Mode 1640@node Nroff Mode
1634@section Nroff Mode 1641@section Nroff Mode
1635 1642
@@ -1805,7 +1812,7 @@ text file: with keyboard commands, and with the mouse.
1805 1812
1806 The easiest way to add properties to your document is by using the Text 1813 The easiest way to add properties to your document is by using the Text
1807Properties menu. You can get to this menu in two ways: from the Edit 1814Properties menu. You can get to this menu in two ways: from the Edit
1808menu in the menu bar, or with @kbd{C-mouse-2} (hold the @key{CTRL} key 1815menu in the menu bar, or with @kbd{C-Mouse-2} (hold the @key{CTRL} key
1809and press the middle mouse button). 1816and press the middle mouse button).
1810 1817
1811 Most of the items in the Text Properties menu lead to other submenus. 1818 Most of the items in the Text Properties menu lead to other submenus.