Function: flymake-proc-init-create-temp-buffer-copy
flymake-proc-init-create-temp-buffer-copy is a byte-compiled function
defined in flymake-proc.el.gz.
Signature
(flymake-proc-init-create-temp-buffer-copy CREATE-TEMP-F)
Documentation
Make a temporary copy of the current buffer, save its name in buffer data.
Return the name.
Aliases
flymake-init-create-temp-buffer-copy (obsolete since 26.1)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/flymake-proc.el.gz
(defun flymake-proc-init-create-temp-buffer-copy (create-temp-f)
"Make a temporary copy of the current buffer, save its name in buffer data.
Return the name."
(let* ((source-file-name buffer-file-name)
(temp-source-file-name (funcall create-temp-f source-file-name "flymake")))
(flymake-proc--save-buffer-in-file temp-source-file-name)
(setq flymake-proc--temp-source-file-name temp-source-file-name)
temp-source-file-name))