comparison man/text.texi @ 90100:72cf6261961e

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-11 Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-69 - miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-71 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-72 src/dispextern.h (xassert): Enable unconditionally. * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-73 - miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-81 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-82 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-12 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-13 Update from CVS
author Miles Bader <miles@gnu.org>
date Sun, 06 Feb 2005 12:06:02 +0000
parents f2ebccfa87d4 01b2833123a8
children 7e3f621f1dd4
comparison
equal deleted inserted replaced
90099:fa9654493afb 90100:72cf6261961e
183 @findex backward-sentence 183 @findex backward-sentence
184 @findex forward-sentence 184 @findex forward-sentence
185 The commands @kbd{M-a} and @kbd{M-e} (@code{backward-sentence} and 185 The commands @kbd{M-a} and @kbd{M-e} (@code{backward-sentence} and
186 @code{forward-sentence}) move to the beginning and end of the current 186 @code{forward-sentence}) move to the beginning and end of the current
187 sentence, respectively. They were chosen to resemble @kbd{C-a} and 187 sentence, respectively. They were chosen to resemble @kbd{C-a} and
188 @kbd{C-e}, which move to the beginning and end of a line. Unlike them, 188 @kbd{C-e}, which move to the beginning and end of a line. Unlike
189 @kbd{M-a} and @kbd{M-e} if repeated or given numeric arguments move over 189 them, @kbd{M-a} and @kbd{M-e} move over successive sentences if
190 successive sentences. 190 repeated.
191 191
192 Moving backward over a sentence places point just before the first 192 Moving backward over a sentence places point just before the first
193 character of the sentence; moving forward places point right after the 193 character of the sentence; moving forward places point right after the
194 punctuation that ends the sentence. Neither one moves over the 194 punctuation that ends the sentence. Neither one moves over the
195 whitespace at the sentence boundary. 195 whitespace at the sentence boundary.
236 @example 236 @example
237 "[.?!][]\"')]*\\($\\|\t\\| \\)[ \t\n]*" 237 "[.?!][]\"')]*\\($\\|\t\\| \\)[ \t\n]*"
238 @end example 238 @end example
239 239
240 @noindent 240 @noindent
241 You should also set the variable @code{sentence-end-double-space} to 241 This is what setting the variable @code{sentence-end-double-space} to
242 @code{nil} so that the fill commands expect and leave just one space at 242 @code{nil} automatically does. But note that this makes it impossible
243 the end of a sentence. Note that this makes it impossible to 243 to distinguish between periods that end sentences and those that
244 distinguish between periods that end sentences and those that indicate 244 indicate abbreviations.
245 abbreviations.
246 245
247 @node Paragraphs 246 @node Paragraphs
248 @section Paragraphs 247 @section Paragraphs
249 @cindex paragraphs 248 @cindex paragraphs
250 @cindex manipulating paragraphs 249 @cindex manipulating paragraphs
267 @kbd{M-@{} moves to the beginning of the current or previous 266 @kbd{M-@{} moves to the beginning of the current or previous
268 paragraph, while @kbd{M-@}} moves to the end of the current or next 267 paragraph, while @kbd{M-@}} moves to the end of the current or next
269 paragraph. Blank lines and text-formatter command lines separate 268 paragraph. Blank lines and text-formatter command lines separate
270 paragraphs and are not considered part of any paragraph. In Indented 269 paragraphs and are not considered part of any paragraph. In Indented
271 Text mode, but not in Text mode, an indented line also starts a new 270 Text mode, but not in Text mode, an indented line also starts a new
272 paragraph. (If a paragraph is preceded by a blank line, these 271 paragraph. If there is a blank line before the paragraph, @kbd{M-@{}
273 commands treat that blank line as the beginning of the paragraph.) 272 moves to the blank line, because that is convenient in practice.
274 273
275 In major modes for programs, paragraphs begin and end only at blank 274 In major modes for programs, paragraphs begin and end only at blank
276 lines. This makes the paragraph commands continue to be useful even 275 lines. This makes the paragraph commands continue to be useful even
277 though there are no paragraphs per se. 276 though there are no paragraphs per se.
278 277
892 editing outlines. It allows you to make parts of the text temporarily 891 editing outlines. It allows you to make parts of the text temporarily
893 invisible so that you can see the outline structure. Type @kbd{M-x 892 invisible so that you can see the outline structure. Type @kbd{M-x
894 outline-mode} to switch to Outline mode as the major mode of the current 893 outline-mode} to switch to Outline mode as the major mode of the current
895 buffer. 894 buffer.
896 895
897 When Outline mode makes a line invisible, the line does not appear on 896 When Outline mode makes a line invisible, the line does not appear
898 the screen. The screen appears exactly as if the invisible line were 897 on the screen. The screen appears exactly as if the invisible line
899 deleted, except that an ellipsis (three periods in a row) appears at the 898 were deleted, except that an ellipsis (three periods in a row) appears
900 end of the previous visible line (only one ellipsis no matter how many 899 at the end of the previous visible line. (Multiple consecutive
901 invisible lines follow). 900 invisible lines produce just one ellipsis.)
902 901
903 Editing commands that operate on lines, such as @kbd{C-n} and 902 Editing commands that operate on lines, such as @kbd{C-n} and
904 @kbd{C-p}, treat the text of the invisible line as part of the previous 903 @kbd{C-p}, treat the text of the invisible line as part of the previous
905 visible line. Killing the ellipsis at the end of a visible line 904 visible line. Killing the ellipsis at the end of a visible line
906 really kills all the following invisible lines. 905 really kills all the following invisible lines.
927 * Format: Outline Format. What the text of an outline looks like. 926 * Format: Outline Format. What the text of an outline looks like.
928 * Motion: Outline Motion. Special commands for moving through 927 * Motion: Outline Motion. Special commands for moving through
929 outlines. 928 outlines.
930 * Visibility: Outline Visibility. Commands to control what is visible. 929 * Visibility: Outline Visibility. Commands to control what is visible.
931 * Views: Outline Views. Outlines and multiple views. 930 * Views: Outline Views. Outlines and multiple views.
932 * Foldout:: Folding editing. 931 * Foldout:: Folding means zooming in on outlines.
933 @end menu 932 @end menu
934 933
935 @node Outline Format 934 @node Outline Format
936 @subsection Format of Outlines 935 @subsection Format of Outlines
937 936
1898 @subsection Hard and Soft Newlines 1897 @subsection Hard and Soft Newlines
1899 @cindex hard newline 1898 @cindex hard newline
1900 @cindex soft newline 1899 @cindex soft newline
1901 @cindex newlines, hard and soft 1900 @cindex newlines, hard and soft
1902 1901
1902 @cindex use-hard-newlines
1903 In formatted text, Emacs distinguishes between two different kinds of 1903 In formatted text, Emacs distinguishes between two different kinds of
1904 newlines, @dfn{hard} newlines and @dfn{soft} newlines. 1904 newlines, @dfn{hard} newlines and @dfn{soft} newlines. (You can enable
1905 or disable this feature separately in any buffer with the command
1906 @code{use-hard-newlines}.)
1905 1907
1906 Hard newlines are used to separate paragraphs, or items in a list, or 1908 Hard newlines are used to separate paragraphs, or items in a list, or
1907 anywhere that there should always be a line break regardless of the 1909 anywhere that there should always be a line break regardless of the
1908 margins. The @key{RET} command (@code{newline}) and @kbd{C-o} 1910 margins. The @key{RET} command (@code{newline}) and @kbd{C-o}
1909 (@code{open-line}) insert hard newlines. 1911 (@code{open-line}) insert hard newlines.