[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: info-look.el bug
From: |
Richard Stallman |
Subject: |
Re: info-look.el bug |
Date: |
Thu, 05 Feb 2004 09:52:09 -0500 |
When you want to switch to a buffer and let display-buffer choose
where it should appear, you use pop-to-buffer. I think it is a bug
for switch-to-buffer-other-window to obey same-window-buffer-names
or same-window-regexps. So I think this change is called for.
However, it may be that some existing calls to
switch-to-buffer-other-window would need to be changed to use
pop-to-buffer.
*** files.el.~1.677.~ Fri Jan 16 12:19:44 2004
--- files.el Thu Feb 5 01:07:44 2004
***************
*** 850,856 ****
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))
(pop-to-buffer buffer t norecord)))
(defun switch-to-buffer-other-frame (buffer &optional norecord)
--- 850,857 ----
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)
! same-window-buffer-names same-window-regexps)
(pop-to-buffer buffer t norecord)))
(defun switch-to-buffer-other-frame (buffer &optional norecord)
***************
*** 861,867 ****
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))
(pop-to-buffer buffer t norecord)
(raise-frame (window-frame (selected-window)))))
--- 862,869 ----
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)
! same-window-buffer-names same-window-regexps)
(pop-to-buffer buffer t norecord)
(raise-frame (window-frame (selected-window)))))