202 |
existing buffer. |
existing buffer. |
203 |
@end defun |
@end defun |
204 |
|
|
205 |
@defspec save-current-buffer body... |
@defspec save-current-buffer body@dots{} |
206 |
The @code{save-current-buffer} special form saves the identity of the |
The @code{save-current-buffer} special form saves the identity of the |
207 |
current buffer, evaluates the @var{body} forms, and finally restores |
current buffer, evaluates the @var{body} forms, and finally restores |
208 |
that buffer as current. The return value is the value of the last |
that buffer as current. The return value is the value of the last |
215 |
remains current. |
remains current. |
216 |
@end defspec |
@end defspec |
217 |
|
|
218 |
@defmac with-current-buffer buffer-or-name body... |
@defmac with-current-buffer buffer-or-name body@dots{} |
219 |
The @code{with-current-buffer} macro saves the identity of the current |
The @code{with-current-buffer} macro saves the identity of the current |
220 |
buffer, makes @var{buffer-or-name} current, evaluates the @var{body} |
buffer, makes @var{buffer-or-name} current, evaluates the @var{body} |
221 |
forms, and finally restores the buffer. The return value is the value |
forms, and finally restores the buffer. The return value is the value |
227 |
existing buffer. |
existing buffer. |
228 |
@end defmac |
@end defmac |
229 |
|
|
230 |
@defmac with-temp-buffer body... |
@defmac with-temp-buffer body@dots{} |
231 |
@anchor{Definition of with-temp-buffer} |
@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 |