Next: , Previous: , Up: Writing to Files   [Index]


7.3.5.3 with-temp-file

Function: with-temp-file file body

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.