Next: , Previous: , Up: Current Buffer   [Index]


7.4.3.5 with-temp-buffer

Function: with-temp-buffer &rest body

Create a temporary buffer, and evaluate BODY there like ‘progn’.

RETURN VALUE

The return value is the value of the last form in body. You can return the contents of the temporary buffer by using buffer-string as the last form.