aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2008-03-28 19:04:42 +0000
committerChong Yidong2008-03-28 19:04:42 +0000
commit9a1c224904f047f7dc213813f89d1cb2a3b99b8d (patch)
treef02bd1c1ed18506633210e91ef803adf7d70d750 /doc
parent6184c70885eb4dcc618ff9e2f94fc6845284c6cc (diff)
downloademacs-9a1c224904f047f7dc213813f89d1cb2a3b99b8d.tar.gz
emacs-9a1c224904f047f7dc213813f89d1cb2a3b99b8d.zip
(Words, Pages, Fill Commands, HTML Mode): Describe
Transient Mark mode as the default. (Paragraphs): Describe how M-h behaves when region is active.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/text.texi51
1 files changed, 27 insertions, 24 deletions
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index 4ed6044f6af..5bba3611839 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -165,8 +165,7 @@ between point and mark, you can either set the mark at point and then move
165over the words, or you can use the command @kbd{M-@@} (@code{mark-word}) 165over the words, or you can use the command @kbd{M-@@} (@code{mark-word})
166which does not move point, but sets the mark where @kbd{M-f} would move 166which does not move point, but sets the mark where @kbd{M-f} would move
167to. @kbd{M-@@} accepts a numeric argument that says how many words to 167to. @kbd{M-@@} accepts a numeric argument that says how many words to
168scan for the place to put the mark. In Transient Mark mode, this command 168scan for the place to put the mark.
169activates the mark.
170 169
171 The word commands' understanding of word boundaries is controlled 170 The word commands' understanding of word boundaries is controlled
172by the syntax table. Any character can, for example, be declared to 171by the syntax table. Any character can, for example, be declared to
@@ -298,15 +297,17 @@ all lines which don't start with the fill prefix. @xref{Filling}.
298 297
299@kindex M-h 298@kindex M-h
300@findex mark-paragraph 299@findex mark-paragraph
301 When you wish to operate on a paragraph, you can use the command 300 When you wish to operate on a paragraph, you can type @kbd{M-h}
302@kbd{M-h} (@code{mark-paragraph}) to set the region around it. Thus, 301(@code{mark-paragraph}) to set the region around it. Thus, for
303for example, @kbd{M-h C-w} kills the paragraph around or after point. 302example, @kbd{M-h C-w} kills the paragraph around or after point.
304The @kbd{M-h} command puts point at the beginning and mark at the end of 303@kbd{M-h} puts point at the beginning and mark at the end of the
305the paragraph point was in. In Transient Mark mode, it activates the 304paragraph point was in. If point is between paragraphs (in a run of
306mark. If point is between paragraphs (in a run of blank lines, or at a 305blank lines, or at a boundary), the paragraph following point is
307boundary), the paragraph following point is surrounded by point and 306surrounded by point and mark. If there are blank lines preceding the
308mark. If there are blank lines preceding the first line of the 307first line of the paragraph, one of these blank lines is included in
309paragraph, one of these blank lines is included in the region. 308the region. If the region is already active, the command sets the
309mark without changing point; furthermore, each subsequent @kbd{M-h}
310further advances the mark by one paragraph.
310 311
311@vindex paragraph-start 312@vindex paragraph-start
312@vindex paragraph-separate 313@vindex paragraph-separate
@@ -368,8 +369,7 @@ command moves forward past the next page delimiter.
368 The @kbd{C-x C-p} command (@code{mark-page}) puts point at the 369 The @kbd{C-x C-p} command (@code{mark-page}) puts point at the
369beginning of the current page and the mark at the end. The page 370beginning of the current page and the mark at the end. The page
370delimiter at the end is included (the mark follows it). The page 371delimiter at the end is included (the mark follows it). The page
371delimiter at the front is excluded (point follows it). In Transient 372delimiter at the front is excluded (point follows it).
372Mark mode, this command activates the mark.
373 373
374 @kbd{C-x C-p C-w} is a handy way to kill a page to move it 374 @kbd{C-x C-p C-w} is a handy way to kill a page to move it
375elsewhere. If you move to another page delimiter with @kbd{C-x [} and 375elsewhere. If you move to another page delimiter with @kbd{C-x [} and
@@ -502,9 +502,9 @@ Center a line.
502 To refill a paragraph, use the command @kbd{M-q} 502 To refill a paragraph, use the command @kbd{M-q}
503(@code{fill-paragraph}). This operates on the paragraph that point is 503(@code{fill-paragraph}). This operates on the paragraph that point is
504inside, or the one after point if point is between paragraphs. 504inside, or the one after point if point is between paragraphs.
505Refilling works by removing all the line-breaks, then inserting new ones 505Refilling works by removing all the line-breaks, then inserting new
506where necessary. When the mark is active in Transient Mark mode, this 506ones where necessary. When there is an active region, this command
507command operates on the active region like @code{fill-region}. 507operates on the text within the region like @code{fill-region}.
508 508
509@findex fill-region 509@findex fill-region
510 To refill many paragraphs, use @kbd{M-x fill-region}, which 510 To refill many paragraphs, use @kbd{M-x fill-region}, which
@@ -1785,9 +1785,10 @@ then inserts both the opening tag and the closing tag, leaving point
1785between them. 1785between them.
1786 1786
1787With a prefix argument @var{n}, the command puts the tag around the 1787With a prefix argument @var{n}, the command puts the tag around the
1788@var{n} words already present in the buffer after point. With 1788@var{n} words already present in the buffer after point. Whenever a
1789@minus{}1 as argument, it puts the tag around the region. (In 1789region is active, it puts the tag around the region (when Transient
1790Transient Mark mode, it does this whenever a region is active.) 1790Mark mode is off, it does this when a numeric argument of @minus{}1 is
1791supplied.)
1791 1792
1792@item C-c C-a 1793@item C-c C-a
1793@kindex C-c C-a @r{(SGML mode)} 1794@kindex C-c C-a @r{(SGML mode)}
@@ -2177,15 +2178,17 @@ them.
2177@subsection Colors in Formatted Text 2178@subsection Colors in Formatted Text
2178 2179
2179 You can specify foreground and background colors for portions of the 2180 You can specify foreground and background colors for portions of the
2180text. Under Text Properties there is a submenu for specifying the 2181text. Under Text Properties, there is a submenu for specifying the
2181foreground color, and a submenu for specifying the background color. 2182foreground color, and a submenu for specifying the background color.
2182Each one lists all the colors that you have used in Enriched mode in 2183Each one lists all the colors that you have used in Enriched mode in
2183the current Emacs session. 2184the current Emacs session.
2184 2185
2185 If you specify a color with a prefix argument---or, in Transient 2186 If the region is active, the command applies to the text in the
2186Mark mode, if the region is not active---then it applies to any 2187region; otherwise, it applies to any immediately following
2187immediately following self-inserting input. Otherwise, the command 2188self-inserting input. When Transient Mark mode is off
2188applies to the region. 2189(@pxref{Persistent Mark}), it always applies to the region unless a
2190prefix argument is given, in which case it applies to the following
2191input.
2189 2192
2190 Each of the two color submenus contains one additional item: 2193 Each of the two color submenus contains one additional item:
2191@samp{Other}. You can use this item to specify a color that is not 2194@samp{Other}. You can use this item to specify a color that is not