Mercurial > emacs
diff lisp/replace.el @ 46519:6de9114ee49a
(keep-lines, flush-lines): Interactively report
read-only error before reading regexp argument.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 18 Jul 2002 15:00:56 +0000 |
parents | b4e553fa1fa8 |
children | 4ed23f64c88c |
line wrap: on
line diff
--- a/lisp/replace.el Thu Jul 18 15:00:01 2002 +0000 +++ b/lisp/replace.el Thu Jul 18 15:00:56 2002 +0000 @@ -332,7 +332,9 @@ end of the buffer." (interactive - (keep-lines-read-args "Keep lines (containing match for regexp): ")) + (progn + (barf-if-buffer-read-only) + (keep-lines-read-args "Keep lines (containing match for regexp): "))) (if rstart (progn (goto-char (min rstart rend)) @@ -381,7 +383,9 @@ end of the buffer." (interactive - (keep-lines-read-args "Flush lines (containing match for regexp): ")) + (progn + (barf-if-buffer-read-only) + (keep-lines-read-args "Flush lines (containing match for regexp): "))) (if rstart (progn (goto-char (min rstart rend))