Mercurial > emacs
changeset 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 | c6ca69a1c8d3 |
children | 31c7343400b9 |
files | lisp/replace.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
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))