aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-14 03:05:28 +0000
committerRichard M. Stallman1998-03-14 03:05:28 +0000
commitd09af6a54bebfdfe5982dbe39bfafc8cb98ae6fd (patch)
tree1860f421e723d952b9235a2a0b905d47ba714dfa /lisp/textmodes
parent1bf95511a401d61178e4f01ff7918f1c31c60a07 (diff)
downloademacs-d09af6a54bebfdfe5982dbe39bfafc8cb98ae6fd.tar.gz
emacs-d09af6a54bebfdfe5982dbe39bfafc8cb98ae6fd.zip
(fill-region-as-paragraph, fill-region): Allow t as legit value of JUSTIFY.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/fill.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index eb1d2a9ef42..4320dc8a739 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -273,7 +273,7 @@ If `sentence-end-double-space' is non-nil, then period followed by one
273space does not end a sentence, so don't break a line there." 273space does not end a sentence, so don't break a line there."
274 (interactive (list (region-beginning) (region-end) 274 (interactive (list (region-beginning) (region-end)
275 (if current-prefix-arg 'full))) 275 (if current-prefix-arg 'full)))
276 (unless (memq justify '(nil none full center left right)) 276 (unless (memq justify '(t nil none full center left right))
277 (setq justify 'full)) 277 (setq justify 'full))
278 ;; Arrange for undoing the fill to restore point. 278 ;; Arrange for undoing the fill to restore point.
279 (if (and buffer-undo-list (not (eq buffer-undo-list t))) 279 (if (and buffer-undo-list (not (eq buffer-undo-list t)))
@@ -592,7 +592,9 @@ Ordinarily the variable `fill-column' controls the width.
592 592
593Noninteractively, the third argument JUSTIFY specifies which 593Noninteractively, the third argument JUSTIFY specifies which
594kind of justification to do: `full', `left', `right', `center', 594kind of justification to do: `full', `left', `right', `center',
595or `none' (equivalent to nil). 595or `none' (equivalent to nil). t means handle each paragraph
596as specified by its text properties.
597
596The fourth arg NOSQUEEZE non-nil means to leave 598The fourth arg NOSQUEEZE non-nil means to leave
597whitespace other than line breaks untouched, and fifth arg TO-EOP 599whitespace other than line breaks untouched, and fifth arg TO-EOP
598non-nil means to keep filling to the end of the paragraph (or next 600non-nil means to keep filling to the end of the paragraph (or next
@@ -602,7 +604,7 @@ If `sentence-end-double-space' is non-nil, then period followed by one
602space does not end a sentence, so don't break a line there." 604space does not end a sentence, so don't break a line there."
603 (interactive (list (region-beginning) (region-end) 605 (interactive (list (region-beginning) (region-end)
604 (if current-prefix-arg 'full))) 606 (if current-prefix-arg 'full)))
605 (unless (memq justify '(nil none full center left right)) 607 (unless (memq justify '(t nil none full center left right))
606 (setq justify 'full)) 608 (setq justify 'full))
607 (let (end beg) 609 (let (end beg)
608 (save-restriction 610 (save-restriction