# HG changeset patch # User Richard M. Stallman # Date 1078418963 0 # Node ID accdf6256d6e0b3a98ccc54379b307c082790661 # Parent 27114ce380a01b7705b13a28e2cb4593b8e8e202 (switch-to-buffer-other-window): Bind same-window-buffer-names and same-window-regexps to nil. (switch-to-buffer-other-frame): Likewise. diff -r 27114ce380a0 -r accdf6256d6e lisp/files.el --- 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)))))