diff options
| author | Richard M. Stallman | 1998-03-14 03:05:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-03-14 03:05:28 +0000 |
| commit | d09af6a54bebfdfe5982dbe39bfafc8cb98ae6fd (patch) | |
| tree | 1860f421e723d952b9235a2a0b905d47ba714dfa /lisp/textmodes | |
| parent | 1bf95511a401d61178e4f01ff7918f1c31c60a07 (diff) | |
| download | emacs-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.el | 8 |
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 | |||
| 273 | space does not end a sentence, so don't break a line there." | 273 | space 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 | ||
| 593 | Noninteractively, the third argument JUSTIFY specifies which | 593 | Noninteractively, the third argument JUSTIFY specifies which |
| 594 | kind of justification to do: `full', `left', `right', `center', | 594 | kind of justification to do: `full', `left', `right', `center', |
| 595 | or `none' (equivalent to nil). | 595 | or `none' (equivalent to nil). t means handle each paragraph |
| 596 | as specified by its text properties. | ||
| 597 | |||
| 596 | The fourth arg NOSQUEEZE non-nil means to leave | 598 | The fourth arg NOSQUEEZE non-nil means to leave |
| 597 | whitespace other than line breaks untouched, and fifth arg TO-EOP | 599 | whitespace other than line breaks untouched, and fifth arg TO-EOP |
| 598 | non-nil means to keep filling to the end of the paragraph (or next | 600 | non-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 | |||
| 602 | space does not end a sentence, so don't break a line there." | 604 | space 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 |