Mercurial > emacs
changeset 46335:b4e553fa1fa8
(flush-lines, keep-lines): Convert REND to a marker.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 12 Jul 2002 23:28:15 +0000 |
parents | 3b9bda9aa32d |
children | af464c20ffb2 |
files | lisp/replace.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/replace.el Fri Jul 12 23:26:17 2002 +0000 +++ b/lisp/replace.el Fri Jul 12 23:28:15 2002 +0000 @@ -334,7 +334,9 @@ (interactive (keep-lines-read-args "Keep lines (containing match for regexp): ")) (if rstart - (goto-char (min rstart rend)) + (progn + (goto-char (min rstart rend)) + (setq rend (copy-marker (max rstart rend)))) (if (and transient-mark-mode mark-active) (setq rstart (region-beginning) rend (copy-marker (region-end))) @@ -381,7 +383,9 @@ (interactive (keep-lines-read-args "Flush lines (containing match for regexp): ")) (if rstart - (goto-char (min rstart rend)) + (progn + (goto-char (min rstart rend)) + (setq rend (copy-marker (max rstart rend)))) (if (and transient-mark-mode mark-active) (setq rstart (region-beginning) rend (copy-marker (region-end)))