mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(insert-buffer): Before reading arg, barf if read-only.
This commit is contained in:
parent
af36339a34
commit
58ff020d72
1 changed files with 2 additions and 1 deletions
|
|
@ -1057,7 +1057,8 @@ With argument, rotate that many kills forward (or backward, if negative)."
|
|||
"Insert after point the contents of BUFFER.
|
||||
Puts mark after the inserted text.
|
||||
BUFFER may be a buffer or a buffer name."
|
||||
(interactive (list (read-buffer "Insert buffer: " (other-buffer) t)))
|
||||
(interactive (list (progn (barf-if-buffer-read-only)
|
||||
(read-buffer "Insert buffer: " (other-buffer) t))))
|
||||
(or (bufferp buffer)
|
||||
(setq buffer (get-buffer buffer)))
|
||||
(let (start end newmark)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue