1 |
@c -*-texinfo-*- |
@c -*-texinfo-*- |
2 |
@c This is part of the GNU Emacs Lisp Reference Manual. |
@c This is part of the GNU Emacs Lisp Reference Manual. |
3 |
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 |
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2004 |
4 |
@c Free Software Foundation, Inc. |
@c Free Software Foundation, Inc. |
5 |
@c See the file elisp.texi for copying conditions. |
@c See the file elisp.texi for copying conditions. |
6 |
@setfilename ../info/buffers |
@setfilename ../info/buffers |
227 |
existing buffer. |
existing buffer. |
228 |
@end defmac |
@end defmac |
229 |
|
|
|
@anchor{Definition of with-temp-buffer} |
|
230 |
@defmac with-temp-buffer body... |
@defmac with-temp-buffer body... |
231 |
|
@anchor{Definition of with-temp-buffer} |
232 |
The @code{with-temp-buffer} macro evaluates the @var{body} forms |
The @code{with-temp-buffer} macro evaluates the @var{body} forms |
233 |
with a temporary buffer as the current buffer. It saves the identity of |
with a temporary buffer as the current buffer. It saves the identity of |
234 |
the current buffer, creates a temporary buffer and makes it current, |
the current buffer, creates a temporary buffer and makes it current, |