changeset 85498:707687ae3f04

(fill-paragraph): When the region is active, don't try other `or' branches regardless of the value returned by fill-region; just return t.
author Juri Linkov <juri@jurta.org>
date Sat, 20 Oct 2007 23:55:17 +0000
parents 940f108ed018
children 0fdf639d434f
files lisp/textmodes/fill.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/fill.el	Sat Oct 20 21:10:32 2007 +0000
+++ b/lisp/textmodes/fill.el	Sat Oct 20 23:55:17 2007 +0000
@@ -775,7 +775,7 @@
    ;; 1. Fill the region if it is active when called interactively.
    (and region transient-mark-mode mark-active
 	(not (eq (region-beginning) (region-end)))
-	(fill-region (region-beginning) (region-end) justify))
+	(or (fill-region (region-beginning) (region-end) justify) t))
    ;; 2. Try fill-paragraph-function.
    (and (not (eq fill-paragraph-function t))
 	(or fill-paragraph-function