# HG changeset patch # User Martin Rudalics # Date 1224926264 0 # Node ID a96e658622b6db46495af778b7d7365ccce7aa71 # Parent b86c228e54c9fa2863af365bd4d72414baf894e4 (with-current-buffer): Rename buffer argument to buffer-or-name. diff -r b86c228e54c9 -r a96e658622b6 lisp/subr.el --- a/lisp/subr.el Sat Oct 25 08:08:19 2008 +0000 +++ b/lisp/subr.el Sat Oct 25 09:17:44 2008 +0000 @@ -2483,14 +2483,14 @@ ;;;; Lisp macros to do various things temporarily. -(defmacro with-current-buffer (buffer &rest body) - "Execute the forms in BODY with BUFFER temporarily current. -BUFFER can be a buffer or a buffer name. -The value returned is the value of the last form in BODY. -See also `with-temp-buffer'." +(defmacro with-current-buffer (buffer-or-name &rest body) + "Execute the forms in BODY with BUFFER-OR-NAME temporarily current. +BUFFER-OR-NAME must be a buffer or the name of an existing buffer. +The value returned is the value of the last form in BODY. See +also `with-temp-buffer'." (declare (indent 1) (debug t)) `(save-current-buffer - (set-buffer ,buffer) + (set-buffer ,buffer-or-name) ,@body)) (defmacro with-selected-window (window &rest body)