summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2011-11-20 14:37:46 +0800
committerChong Yidong <cyd@gnu.org>2011-11-20 14:37:46 +0800
commit24901d610c9ff524e7e7c132dca1cd4312368db0 (patch)
treef0c4e749dd56cfbfa3e6e6b1740b2a9d88f77cdb
parent24f3d7b94b364021df18c43c3e7fe4211974ccf9 (diff)
downloademacs-24901d610c9ff524e7e7c132dca1cd4312368db0.tar.gz
* lisp/window.el (replace-buffer-in-windows): Restore interactive spec.
(Probably inadvertently removed when converting to Lisp.)
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/window.el1
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e6f1bc55bf2..db79fdc3b56 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-20 Chong Yidong <cyd@gnu.org>
+
+ * window.el (replace-buffer-in-windows): Restore interactive spec.
+
2011-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
* electric.el (electric-indent-mode): Fix last change (too optimistic).
diff --git a/lisp/window.el b/lisp/window.el
index 477211672cf..2885c3a5c70 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -2920,6 +2920,7 @@ window.
This function removes the buffer denoted by BUFFER-OR-NAME from
all window-local buffer lists."
+ (interactive "bBuffer to replace: ")
(let ((buffer (window-normalize-buffer buffer-or-name)))
(dolist (window (window-list-1 nil nil t))
(if (eq (window-buffer window) buffer)