Mercurial > emacs
comparison lisp/subr.el @ 71151:207dba45f18e
(with-current-buffer): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 02 Jun 2006 03:29:47 +0000 |
parents | e917fe503f6c |
children | a36e654643c1 46b1096093f5 a8190f7e546e |
comparison
equal
deleted
inserted
replaced
71150:07b8f7d57642 | 71151:207dba45f18e |
---|---|
2200 (mapconcat 'identity (cons command args) " "))))) | 2200 (mapconcat 'identity (cons command args) " "))))) |
2201 | 2201 |
2202 ;;;; Lisp macros to do various things temporarily. | 2202 ;;;; Lisp macros to do various things temporarily. |
2203 | 2203 |
2204 (defmacro with-current-buffer (buffer &rest body) | 2204 (defmacro with-current-buffer (buffer &rest body) |
2205 "Execute the forms in BODY with BUFFER as the current buffer. | 2205 "Execute the forms in BODY with BUFFER temporarily current. |
2206 BUFFER can be a buffer or a buffer name. | 2206 BUFFER can be a buffer or a buffer name. |
2207 The value returned is the value of the last form in BODY. | 2207 The value returned is the value of the last form in BODY. |
2208 See also `with-temp-buffer'." | 2208 See also `with-temp-buffer'." |
2209 (declare (indent 1) (debug t)) | 2209 (declare (indent 1) (debug t)) |
2210 `(save-current-buffer | 2210 `(save-current-buffer |