aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2007-10-18 00:09:22 +0000
committerJuri Linkov2007-10-18 00:09:22 +0000
commitad6d10b1b21064d015aa13df2480b0f73ae3f1dd (patch)
treef8341f6222bbfb4ed9b7ddd35fea8395f4502d9f
parentbc3214eda6c4c4e9fb64fd75a4d492f500367490 (diff)
downloademacs-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.texi44
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
489Fill current paragraph or active region (@code{fill-paragraph-or-region}). 489Fill current paragraph (@code{fill-paragraph}).
490@item C-x f 490@item C-x f
491Set the fill column (@code{set-fill-column}). 491Set the fill column (@code{set-fill-column}).
492@item M-x fill-paragraph
493Fill current paragraph (@code{fill-paragraph}).
494@item M-x fill-region 492@item M-x fill-region
495Fill each paragraph in the region (@code{fill-region}). 493Fill 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.
499Center a line. 497Center 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}
504on 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
505is between paragraphs. Refilling works by removing all the 504inside, or the one after point if point is between paragraphs.
506line-breaks, then inserting new ones where necessary. 505Refilling works by removing all the line-breaks, then inserting new ones
506where necessary. When the mark is active in Transient Mark mode, this
507command 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
510finds the paragraphs in the region and fills each of them. 511finds 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
515the active region like @code{fill-region} when the mark is active in
516Transient Mark mode. Otherwise, it operates on the current paragraph
517like @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}
521criteria as @kbd{M-h} for finding paragraph boundaries (@pxref{Paragraphs}). 515for finding paragraph boundaries (@pxref{Paragraphs}). For more
522For more control, you can use @kbd{M-x fill-region-as-paragraph}, 516control, you can use @kbd{M-x fill-region-as-paragraph}, which refills
523which refills everything between point and mark as a single paragraph. 517everything between point and mark as a single paragraph. This command
524This command deletes any blank lines within the region, so separate 518deletes any blank lines within the region, so separate blocks of text
525blocks of text end up combined into one block. 519end 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
529as well as filling it. This means that extra spaces are inserted to 523as well as filling it. This means that extra spaces are inserted to
530make the right margin line up exactly at the fill column. To remove 524make the right margin line up exactly at the fill column. To remove
531the extra spaces, use @kbd{M-q} with no argument. (Likewise for 525the 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
533justification, and choose other styles of filling, is with the 527other styles of filling, is with the @code{justification} text
534@code{justification} text property; see @ref{Format Justification}. 528property; 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 .
596Set the fill prefix (@code{set-fill-prefix}). 590Set the fill prefix (@code{set-fill-prefix}).
597@item M-q 591@item M-q
598Fill a paragraph using current fill prefix (@code{fill-paragraph-or-region}). 592Fill a paragraph using current fill prefix (@code{fill-paragraph}).
599@item M-x fill-individual-paragraphs 593@item M-x fill-individual-paragraphs
600Fill the region, considering each change of indentation as starting a 594Fill the region, considering each change of indentation as starting a
601new paragraph. 595new 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
2258messed up---parts of the paragraph may extend past the left or right 2252messed up---parts of the paragraph may extend past the left or right
2259margins. When this happens, use @kbd{M-q} (@code{fill-paragraph-or-region}) to 2253margins. When this happens, use @kbd{M-q} (@code{fill-paragraph}) to
2260refill the paragraph. 2254refill 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