]> git.eshelyaron.com Git - emacs.git/commitdiff
(switch-to-buffer-other-window): Bind
authorRichard M. Stallman <rms@gnu.org>
Thu, 4 Mar 2004 16:49:23 +0000 (16:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 4 Mar 2004 16:49:23 +0000 (16:49 +0000)
same-window-buffer-names and same-window-regexps to nil.
(switch-to-buffer-other-frame): Likewise.

lisp/files.el

index 3b178af029b82ca8450fc69da5fff8b5463e7d70..a63aea991145bb635ca09ac6b47e4e6359ed1cfe 100644 (file)
@@ -855,7 +855,9 @@ do not put this buffer at the front of the list of recently selected ones.
 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 @@ do not put this buffer at the front of the list of recently selected ones.
 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)))))