diff options
| author | Chong Yidong | 2008-03-28 19:04:42 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-03-28 19:04:42 +0000 |
| commit | 9a1c224904f047f7dc213813f89d1cb2a3b99b8d (patch) | |
| tree | f02bd1c1ed18506633210e91ef803adf7d70d750 /doc | |
| parent | 6184c70885eb4dcc618ff9e2f94fc6845284c6cc (diff) | |
| download | emacs-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.texi | 51 |
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 | |||
| 165 | over the words, or you can use the command @kbd{M-@@} (@code{mark-word}) | 165 | over the words, or you can use the command @kbd{M-@@} (@code{mark-word}) |
| 166 | which does not move point, but sets the mark where @kbd{M-f} would move | 166 | which does not move point, but sets the mark where @kbd{M-f} would move |
| 167 | to. @kbd{M-@@} accepts a numeric argument that says how many words to | 167 | to. @kbd{M-@@} accepts a numeric argument that says how many words to |
| 168 | scan for the place to put the mark. In Transient Mark mode, this command | 168 | scan for the place to put the mark. |
| 169 | activates the mark. | ||
| 170 | 169 | ||
| 171 | The word commands' understanding of word boundaries is controlled | 170 | The word commands' understanding of word boundaries is controlled |
| 172 | by the syntax table. Any character can, for example, be declared to | 171 | by 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 |
| 303 | for example, @kbd{M-h C-w} kills the paragraph around or after point. | 302 | example, @kbd{M-h C-w} kills the paragraph around or after point. |
| 304 | The @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 |
| 305 | the paragraph point was in. In Transient Mark mode, it activates the | 304 | paragraph point was in. If point is between paragraphs (in a run of |
| 306 | mark. If point is between paragraphs (in a run of blank lines, or at a | 305 | blank lines, or at a boundary), the paragraph following point is |
| 307 | boundary), the paragraph following point is surrounded by point and | 306 | surrounded by point and mark. If there are blank lines preceding the |
| 308 | mark. If there are blank lines preceding the first line of the | 307 | first line of the paragraph, one of these blank lines is included in |
| 309 | paragraph, one of these blank lines is included in the region. | 308 | the region. If the region is already active, the command sets the |
| 309 | mark without changing point; furthermore, each subsequent @kbd{M-h} | ||
| 310 | further 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 |
| 369 | beginning of the current page and the mark at the end. The page | 370 | beginning of the current page and the mark at the end. The page |
| 370 | delimiter at the end is included (the mark follows it). The page | 371 | delimiter at the end is included (the mark follows it). The page |
| 371 | delimiter at the front is excluded (point follows it). In Transient | 372 | delimiter at the front is excluded (point follows it). |
| 372 | Mark 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 |
| 375 | elsewhere. If you move to another page delimiter with @kbd{C-x [} and | 375 | elsewhere. 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 |
| 504 | inside, or the one after point if point is between paragraphs. | 504 | inside, or the one after point if point is between paragraphs. |
| 505 | Refilling works by removing all the line-breaks, then inserting new ones | 505 | Refilling works by removing all the line-breaks, then inserting new |
| 506 | where necessary. When the mark is active in Transient Mark mode, this | 506 | ones where necessary. When there is an active region, this command |
| 507 | command operates on the active region like @code{fill-region}. | 507 | operates 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 | |||
| 1785 | between them. | 1785 | between them. |
| 1786 | 1786 | ||
| 1787 | With a prefix argument @var{n}, the command puts the tag around the | 1787 | With 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 | 1789 | region is active, it puts the tag around the region (when Transient |
| 1790 | Transient Mark mode, it does this whenever a region is active.) | 1790 | Mark mode is off, it does this when a numeric argument of @minus{}1 is |
| 1791 | supplied.) | ||
| 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 |
| 2180 | text. Under Text Properties there is a submenu for specifying the | 2181 | text. Under Text Properties, there is a submenu for specifying the |
| 2181 | foreground color, and a submenu for specifying the background color. | 2182 | foreground color, and a submenu for specifying the background color. |
| 2182 | Each one lists all the colors that you have used in Enriched mode in | 2183 | Each one lists all the colors that you have used in Enriched mode in |
| 2183 | the current Emacs session. | 2184 | the 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 |
| 2186 | Mark mode, if the region is not active---then it applies to any | 2187 | region; otherwise, it applies to any immediately following |
| 2187 | immediately following self-inserting input. Otherwise, the command | 2188 | self-inserting input. When Transient Mark mode is off |
| 2188 | applies to the region. | 2189 | (@pxref{Persistent Mark}), it always applies to the region unless a |
| 2190 | prefix argument is given, in which case it applies to the following | ||
| 2191 | input. | ||
| 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 |