From: Juri Linkov Date: Sat, 20 Oct 2007 23:55:30 +0000 (+0000) Subject: (fill-paragraph): When the region is active, don't try other `or' branches X-Git-Tag: emacs-pretest-23.0.90~10182 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=64b53a1f5a6e4cc53763d3d8879d7509ceae5e6a;p=emacs.git (fill-paragraph): When the region is active, don't try other `or' branches regardless of the value returned by fill-region; just return t. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8d1c808404f..886e8b62f88 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2007-10-20 Juri Linkov + + * textmodes/fill.el (fill-paragraph): When the region is active, + don't try other `or' branches regardless of the value returned by + fill-region; just return t. + 2007-10-20 Eric S. Raymond * vc.el (vc-do-command): Condition out a misleading message when diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index ca89fc7a83c..9723568f220 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -775,7 +775,7 @@ in the active region." ;; 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