Commit 64b53a1f authored by Juri Linkov's avatar Juri Linkov
Browse files

(fill-paragraph): When the region is active, don't try other `or' branches

regardless of the value returned by fill-region; just return t.
parent 675007bc
2007-10-20 Juri Linkov <juri@jurta.org>
* 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 <esr@snark.thyrsus.com>
* vc.el (vc-do-command): Condition out a misleading message when
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment