changeset 54254:accdf6256d6e

(switch-to-buffer-other-window): Bind same-window-buffer-names and same-window-regexps to nil. (switch-to-buffer-other-frame): Likewise.
author Richard M. Stallman <rms@gnu.org>
date Thu, 04 Mar 2004 16:49:23 +0000
parents 27114ce380a0
children 5cf652dfce17
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Thu Mar 04 00:29:50 2004 +0000
+++ b/lisp/files.el	Thu Mar 04 16:49:23 2004 +0000
@@ -855,7 +855,9 @@
 This uses the function `display-buffer' as a subroutine; see its
 documentation for additional customization information."
   (interactive "BSwitch to buffer in other window: ")
-  (let ((pop-up-windows t))
+  (let ((pop-up-windows t)
+	;; Don't let these interfere.
+	same-window-buffer-names same-window-regexps)
     (pop-to-buffer buffer t norecord)))
 
 (defun switch-to-buffer-other-frame (buffer &optional norecord)
@@ -866,7 +868,8 @@
 This uses the function `display-buffer' as a subroutine; see its
 documentation for additional customization information."
   (interactive "BSwitch to buffer in other frame: ")
-  (let ((pop-up-frames t))
+  (let ((pop-up-frames t)
+	same-window-buffer-names same-window-regexps)
     (pop-to-buffer buffer t norecord)
     (raise-frame (window-frame (selected-window)))))