aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2008-10-25 09:18:19 +0000
committerMartin Rudalics2008-10-25 09:18:19 +0000
commit83f57f499af3922fd09956044f7fe8596e21b686 (patch)
tree71d4d810bd9788da04db2d5b1e9dbf999bad5d6d
parentcf20330bba87d1f2bb622d2403fcce4c9830dfee (diff)
downloademacs-83f57f499af3922fd09956044f7fe8596e21b686.tar.gz
emacs-83f57f499af3922fd09956044f7fe8596e21b686.zip
(with-current-buffer): Rename buffer argument to buffer-or-name.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/subr.el12
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 56d04af23e7..b6651bd3ac0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12008-10-25 Martin Rudalics <rudalics@gmx.at> 12008-10-25 Martin Rudalics <rudalics@gmx.at>
2 2
3 * subr.el (with-current-buffer): Rename buffer argument to
4 buffer-or-name.
3 * window.el (get-buffer-window-list): Rename buffer argument to 5 * window.el (get-buffer-window-list): Rename buffer argument to
4 buffer-or-name and make it optional. 6 buffer-or-name and make it optional.
5 7
diff --git a/lisp/subr.el b/lisp/subr.el
index 5a1f4d42ee2..0dda4b0e604 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2483,14 +2483,14 @@ Similar to `call-process-shell-command', but calls `process-file'."
2483 2483
2484;;;; Lisp macros to do various things temporarily. 2484;;;; Lisp macros to do various things temporarily.
2485 2485
2486(defmacro with-current-buffer (buffer &rest body) 2486(defmacro with-current-buffer (buffer-or-name &rest body)
2487 "Execute the forms in BODY with BUFFER temporarily current. 2487 "Execute the forms in BODY with BUFFER-OR-NAME temporarily current.
2488BUFFER can be a buffer or a buffer name. 2488BUFFER-OR-NAME must be a buffer or the name of an existing buffer.
2489The value returned is the value of the last form in BODY. 2489The value returned is the value of the last form in BODY. See
2490See also `with-temp-buffer'." 2490also `with-temp-buffer'."
2491 (declare (indent 1) (debug t)) 2491 (declare (indent 1) (debug t))
2492 `(save-current-buffer 2492 `(save-current-buffer
2493 (set-buffer ,buffer) 2493 (set-buffer ,buffer-or-name)
2494 ,@body)) 2494 ,@body))
2495 2495
2496(defmacro with-selected-window (window &rest body) 2496(defmacro with-selected-window (window &rest body)