From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: info-look.el bug Date: Thu, 05 Feb 2004 09:52:09 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <16413.4543.492252.351095@bushmills.inf.ed.ac.uk> <401FD49A.5010506@yahoo.com> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1075993572 21652 80.91.224.253 (5 Feb 2004 15:06:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2004 15:06:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Feb 05 16:06:08 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aol4y-00048L-00 for ; Thu, 05 Feb 2004 16:06:08 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aol4y-0002W6-00 for ; Thu, 05 Feb 2004 16:06:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aol41-0000Z5-CG for emacs-devel@quimby.gnus.org; Thu, 05 Feb 2004 10:05:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aokvq-00071k-AQ for emacs-devel@gnu.org; Thu, 05 Feb 2004 09:56:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AokvB-0006mP-Cr for emacs-devel@gnu.org; Thu, 05 Feb 2004 09:56:32 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aokt7-0006Mz-QG for emacs-devel@gnu.org; Thu, 05 Feb 2004 09:53:53 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1AokrR-0007EN-OM; Thu, 05 Feb 2004 09:52:09 -0500 Original-To: Kevin Rodgers In-reply-to: <401FD49A.5010506@yahoo.com> (message from Kevin Rodgers on Tue, 03 Feb 2004 10:04:26 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19750 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19750 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)))))