Next: make-temp-file, Previous: write-region, Up: Writing to Files [Index]
The ‘with-temp-file’ macro evaluates the BODY forms with a temporary buffer as the current buffer; then, at the end, it writes the buffer contents into file FILE. It kills the temporary buffer when finished, restoring the buffer that was current before the ‘with-temp-file’ form. Then it returns the value of the last form in BODY.
See also with-temp-buffer
.