minibuffer

How to create a temporary file in Emacs Lisp?

September 30, 2023
(make-temp-file "foo-") ;; "/tmp/foo-BaXkII"

(let ((file (make-temp-file "foo-")))
  (write-region "foo bar baz" nil file)
  (find-file file))