Mercurial > emacs
diff lisp/replace.el @ 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 | 43acdf05b0cf |
| children | 6de9114ee49a |
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)))
