message-generate-new-buffer-clone-locals

message-generate-new-buffer-clone-locals is a compiled Lisp function in `message.el'.

(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.