1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-05 20:43:08 +00:00

(append-to-buffer): Interactively, supply all 3 args.

Allow nonexistent buffers.
This commit is contained in:
Richard M. Stallman 1993-06-10 23:06:50 +00:00
parent 6992e6b7a7
commit 23efee2ce4

View File

@ -1194,7 +1194,8 @@ When calling from a program, give three arguments:
BUFFER (or buffer name), START and END.
START and END specify the portion of the current buffer to be copied."
(interactive
(list (read-buffer "Append to buffer: " (other-buffer nil t) t)))
(list (read-buffer "Append to buffer: " (other-buffer nil t))
(region-beginning) (region-end)))
(let ((oldbuf (current-buffer)))
(save-excursion
(set-buffer (get-buffer-create buffer))