diff options
| author | Juri Linkov | 2007-10-18 00:09:22 +0000 |
|---|---|---|
| committer | Juri Linkov | 2007-10-18 00:09:22 +0000 |
| commit | ad6d10b1b21064d015aa13df2480b0f73ae3f1dd (patch) | |
| tree | f8341f6222bbfb4ed9b7ddd35fea8395f4502d9f | |
| parent | bc3214eda6c4c4e9fb64fd75a4d492f500367490 (diff) | |
| download | emacs-ad6d10b1b21064d015aa13df2480b0f73ae3f1dd.tar.gz emacs-ad6d10b1b21064d015aa13df2480b0f73ae3f1dd.zip | |
(Fill Commands): Undocument fill-paragraph-or-region.
fill-paragraph operates on the active region in Transient Mark mode.
(Fill Prefix, Format Indentation): Replace fill-paragraph-or-region
with fill-paragraph.
| -rw-r--r-- | doc/emacs/text.texi | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index 9cfd4ffe922..c151c75e8bb 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -486,11 +486,9 @@ The section on init files says how to arrange this permanently for yourself. | |||
| 486 | 486 | ||
| 487 | @table @kbd | 487 | @table @kbd |
| 488 | @item M-q | 488 | @item M-q |
| 489 | Fill current paragraph or active region (@code{fill-paragraph-or-region}). | 489 | Fill current paragraph (@code{fill-paragraph}). |
| 490 | @item C-x f | 490 | @item C-x f |
| 491 | Set the fill column (@code{set-fill-column}). | 491 | Set the fill column (@code{set-fill-column}). |
| 492 | @item M-x fill-paragraph | ||
| 493 | Fill current paragraph (@code{fill-paragraph}). | ||
| 494 | @item M-x fill-region | 492 | @item M-x fill-region |
| 495 | Fill each paragraph in the region (@code{fill-region}). | 493 | Fill each paragraph in the region (@code{fill-region}). |
| 496 | @item M-x fill-region-as-paragraph | 494 | @item M-x fill-region-as-paragraph |
| @@ -499,39 +497,35 @@ Fill the region, considering it as one paragraph. | |||
| 499 | Center a line. | 497 | Center a line. |
| 500 | @end table | 498 | @end table |
| 501 | 499 | ||
| 500 | @kindex M-q | ||
| 502 | @findex fill-paragraph | 501 | @findex fill-paragraph |
| 503 | To refill a paragraph, use @kbd{M-x fill-paragraph}. This operates | 502 | To refill a paragraph, use the command @kbd{M-q} |
| 504 | on the paragraph that point is inside, or the one after point if point | 503 | (@code{fill-paragraph}). This operates on the paragraph that point is |
| 505 | is between paragraphs. Refilling works by removing all the | 504 | inside, or the one after point if point is between paragraphs. |
| 506 | line-breaks, then inserting new ones where necessary. | 505 | Refilling works by removing all the line-breaks, then inserting new ones |
| 506 | where necessary. When the mark is active in Transient Mark mode, this | ||
| 507 | command operates on the active region like @code{fill-region}. | ||
| 507 | 508 | ||
| 508 | @findex fill-region | 509 | @findex fill-region |
| 509 | To refill many paragraphs, use @kbd{M-x fill-region}, which | 510 | To refill many paragraphs, use @kbd{M-x fill-region}, which |
| 510 | finds the paragraphs in the region and fills each of them. | 511 | finds the paragraphs in the region and fills each of them. |
| 511 | 512 | ||
| 512 | @kindex M-q | ||
| 513 | @findex fill-paragraph-or-region | ||
| 514 | The command @kbd{M-q} (@code{fill-paragraph-or-region}), operates on | ||
| 515 | the active region like @code{fill-region} when the mark is active in | ||
| 516 | Transient Mark mode. Otherwise, it operates on the current paragraph | ||
| 517 | like @code{fill-paragraph}. | ||
| 518 | |||
| 519 | @findex fill-region-as-paragraph | 513 | @findex fill-region-as-paragraph |
| 520 | @kbd{M-q}, @code{fill-paragraph} and @code{fill-region} use the same | 514 | @kbd{M-q} and @code{fill-region} use the same criteria as @kbd{M-h} |
| 521 | criteria as @kbd{M-h} for finding paragraph boundaries (@pxref{Paragraphs}). | 515 | for finding paragraph boundaries (@pxref{Paragraphs}). For more |
| 522 | For more control, you can use @kbd{M-x fill-region-as-paragraph}, | 516 | control, you can use @kbd{M-x fill-region-as-paragraph}, which refills |
| 523 | which refills everything between point and mark as a single paragraph. | 517 | everything between point and mark as a single paragraph. This command |
| 524 | This command deletes any blank lines within the region, so separate | 518 | deletes any blank lines within the region, so separate blocks of text |
| 525 | blocks of text end up combined into one block. | 519 | end up combined into one block. |
| 526 | 520 | ||
| 527 | @cindex justification | 521 | @cindex justification |
| 528 | A numeric argument to @kbd{M-q} tells it to @dfn{justify} the text | 522 | A numeric argument to @kbd{M-q} tells it to @dfn{justify} the text |
| 529 | as well as filling it. This means that extra spaces are inserted to | 523 | as well as filling it. This means that extra spaces are inserted to |
| 530 | make the right margin line up exactly at the fill column. To remove | 524 | make the right margin line up exactly at the fill column. To remove |
| 531 | the extra spaces, use @kbd{M-q} with no argument. (Likewise for | 525 | the extra spaces, use @kbd{M-q} with no argument. (Likewise for |
| 532 | @code{fill-paragraph} and @code{fill-region}.) Another way to control | 526 | @code{fill-region}.) Another way to control justification, and choose |
| 533 | justification, and choose other styles of filling, is with the | 527 | other styles of filling, is with the @code{justification} text |
| 534 | @code{justification} text property; see @ref{Format Justification}. | 528 | property; see @ref{Format Justification}. |
| 535 | 529 | ||
| 536 | @kindex M-s @r{(Text mode)} | 530 | @kindex M-s @r{(Text mode)} |
| 537 | @cindex centering | 531 | @cindex centering |
| @@ -595,7 +589,7 @@ fill prefix automatically (@pxref{Adaptive Fill}). | |||
| 595 | @item C-x . | 589 | @item C-x . |
| 596 | Set the fill prefix (@code{set-fill-prefix}). | 590 | Set the fill prefix (@code{set-fill-prefix}). |
| 597 | @item M-q | 591 | @item M-q |
| 598 | Fill a paragraph using current fill prefix (@code{fill-paragraph-or-region}). | 592 | Fill a paragraph using current fill prefix (@code{fill-paragraph}). |
| 599 | @item M-x fill-individual-paragraphs | 593 | @item M-x fill-individual-paragraphs |
| 600 | Fill the region, considering each change of indentation as starting a | 594 | Fill the region, considering each change of indentation as starting a |
| 601 | new paragraph. | 595 | new paragraph. |
| @@ -2256,7 +2250,7 @@ margin width either with a numeric argument or in the minibuffer. | |||
| 2256 | 2250 | ||
| 2257 | Sometimes, as a result of editing, the filling of a paragraph becomes | 2251 | Sometimes, as a result of editing, the filling of a paragraph becomes |
| 2258 | messed up---parts of the paragraph may extend past the left or right | 2252 | messed up---parts of the paragraph may extend past the left or right |
| 2259 | margins. When this happens, use @kbd{M-q} (@code{fill-paragraph-or-region}) to | 2253 | margins. When this happens, use @kbd{M-q} (@code{fill-paragraph}) to |
| 2260 | refill the paragraph. | 2254 | refill the paragraph. |
| 2261 | 2255 | ||
| 2262 | The fill prefix, if any, works in addition to the specified paragraph | 2256 | The fill prefix, if any, works in addition to the specified paragraph |