# HG changeset patch # User Juri Linkov # Date 1102991616 0 # Node ID 58f1100f0a9ea4b139b7d3a45f79773ccb189b51 # Parent bb8424d9ff976fdb569f97e03c9281846803bf38 (Buffer-menu-switch-other-window): Bind pop-up-windows to t. (Buffer-menu-switch-other-window, Buffer-menu-2-window): Bind same-window-buffer-names and same-window-regexps to nil. diff -r bb8424d9ff97 -r 58f1100f0a9e lisp/buff-menu.el --- a/lisp/buff-menu.el Tue Dec 14 02:24:33 2004 +0000 +++ b/lisp/buff-menu.el Tue Dec 14 02:33:36 2004 +0000 @@ -484,14 +484,19 @@ "Make the other window select this line's buffer. The current window remains selected." (interactive) - (display-buffer (Buffer-menu-buffer t))) + (let ((pop-up-windows t) + same-window-buffer-names + same-window-regexps) + (display-buffer (Buffer-menu-buffer t)))) (defun Buffer-menu-2-window () "Select this line's buffer, with previous buffer in second window." (interactive) (let ((buff (Buffer-menu-buffer t)) (menu (current-buffer)) - (pop-up-windows t)) + (pop-up-windows t) + same-window-buffer-names + same-window-regexps) (delete-other-windows) (switch-to-buffer (other-buffer)) (pop-to-buffer buff)