1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

(isearch-query-replace): Use (mark) instead of

isearch-opoint if mark is active in transient-mark-mode.
This commit is contained in:
Juri Linkov 2005-12-14 07:55:50 +00:00
parent e7e4ea210a
commit fa81f0107f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-12-14 Juri Linkov <juri@jurta.org>
* isearch.el (isearch-query-replace): Use (mark) instead of
isearch-opoint if mark is active in transient-mark-mode.
2005-12-14 Aaron S. Hawley <Aaron.Hawley@uvm.edu>
* isearch.el (isearch-query-replace): Check for isearch-other-end.

View file

@ -1227,7 +1227,7 @@ Use `isearch-exit' to quit without signaling."
(if (and isearch-other-end
(< isearch-other-end (point))
(not (and transient-mark-mode mark-active
(< isearch-opoint (point)))))
(< (mark) (point)))))
(goto-char isearch-other-end))
(set query-replace-from-history-variable
(cons isearch-string