mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 21:37:34 +00:00
(keep-lines, flush-lines): Interactively report
read-only error before reading regexp argument.
This commit is contained in:
parent
155133a257
commit
98faf1bb41
1 changed files with 6 additions and 2 deletions
|
|
@ -332,7 +332,9 @@ on the contents of the region. Otherwise, operate from point to the
|
|||
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 @@ on the contents of the region. Otherwise, operate from point to the
|
|||
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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue