aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2007-10-20 23:55:30 +0000
committerJuri Linkov2007-10-20 23:55:30 +0000
commit64b53a1f5a6e4cc53763d3d8879d7509ceae5e6a (patch)
tree4d3319a2e3ef3760e0cd150c8568d905923da691
parent675007bc7c8f84bc3eafe62f908278f89c7c129a (diff)
downloademacs-64b53a1f5a6e4cc53763d3d8879d7509ceae5e6a.tar.gz
emacs-64b53a1f5a6e4cc53763d3d8879d7509ceae5e6a.zip
(fill-paragraph): When the region is active, don't try other `or' branches
regardless of the value returned by fill-region; just return t.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/fill.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8d1c808404f..886e8b62f88 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-10-20 Juri Linkov <juri@jurta.org>
2
3 * textmodes/fill.el (fill-paragraph): When the region is active,
4 don't try other `or' branches regardless of the value returned by
5 fill-region; just return t.
6
12007-10-20 Eric S. Raymond <esr@snark.thyrsus.com> 72007-10-20 Eric S. Raymond <esr@snark.thyrsus.com>
2 8
3 * vc.el (vc-do-command): Condition out a misleading message when 9 * 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."
775 ;; 1. Fill the region if it is active when called interactively. 775 ;; 1. Fill the region if it is active when called interactively.
776 (and region transient-mark-mode mark-active 776 (and region transient-mark-mode mark-active
777 (not (eq (region-beginning) (region-end))) 777 (not (eq (region-beginning) (region-end)))
778 (fill-region (region-beginning) (region-end) justify)) 778 (or (fill-region (region-beginning) (region-end) justify) t))
779 ;; 2. Try fill-paragraph-function. 779 ;; 2. Try fill-paragraph-function.
780 (and (not (eq fill-paragraph-function t)) 780 (and (not (eq fill-paragraph-function t))
781 (or fill-paragraph-function 781 (or fill-paragraph-function