Function: replace-buffer-contents
replace-buffer-contents is an interactive and byte-compiled function
defined in subr.el.gz.
This command is obsolete since 31.1; use replace-region-contents
instead.
Signature
(replace-buffer-contents SOURCE &optional MAX-SECS MAX-COSTS)
Documentation
Replace accessible portion of current buffer with that of SOURCE.
SOURCE can be a buffer or a string that names a buffer. Interactively, prompt for SOURCE.
The replacement is performed using replace-region-contents
which also describes the MAX-SECS and MAX-COSTS arguments and the
return value.
Probably introduced at or before Emacs version 26.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun replace-buffer-contents (source &optional max-secs max-costs)
"Replace accessible portion of current buffer with that of SOURCE.
SOURCE can be a buffer or a string that names a buffer.
Interactively, prompt for SOURCE.
The replacement is performed using `replace-region-contents'
which also describes the MAX-SECS and MAX-COSTS arguments and the
return value."
(declare (obsolete replace-region-contents "31.1"))
(interactive "bSource buffer: ")
(replace-region-contents (point-min) (point-max) (get-buffer source)
max-secs max-costs))