Function: message-generate-new-buffer-clone-locals
message-generate-new-buffer-clone-locals is a byte-compiled function
defined in message.el.gz.
Signature
(message-generate-new-buffer-clone-locals NAME &optional VARSTR)
Documentation
Create and return a buffer with name based on NAME using generate-new-buffer.
Then clone the local variables and values from the old buffer to the new one, cloning only the locals having a substring matching the regexp VARSTR.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defun message-generate-new-buffer-clone-locals (name &optional varstr)
"Create and return a buffer with name based on NAME using `generate-new-buffer'.
Then clone the local variables and values from the old buffer to the
new one, cloning only the locals having a substring matching the
regexp VARSTR."
(let ((oldbuf (current-buffer)))
(with-current-buffer (generate-new-buffer name)
(message-clone-locals oldbuf varstr)
(current-buffer))))