From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: Re: View-quit in *Help* restores wrong window when display-buffer-reuse-frames is t Date: Sat, 20 Oct 2007 11:45:37 +0200 Message-ID: <4719CE41.1000603@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192873612 28090 80.91.229.12 (20 Oct 2007 09:46:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 09:46:52 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, dashteacup@insightbb.com To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 11:46:52 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IjAux-0006Ql-Cs for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 11:46:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjAup-00029J-Sh for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 05:46:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjAuZ-00022g-4P for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 05:46:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjAuW-00021a-Tb for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 05:46:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjAuW-00021R-OT for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 05:46:24 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IjAuV-00047X-Hy for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 05:46:24 -0400 Original-Received: (qmail invoked by alias); 20 Oct 2007 09:46:20 -0000 Original-Received: from N922P023.adsl.highway.telekom.at (EHLO [62.47.59.55]) [62.47.59.55] by mail.gmx.net (mp010) with SMTP; 20 Oct 2007 11:46:20 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+W2p9mO2qWqpCNFqJ2AQFW/9yv6oxvxtCrY5owZ2 U1TVFp1RwCZck0 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16793 Archived-At: > As I said, I do *not* switch to another buffer in the same window as *Help* > (which is dedicated). I don't think that's even possible, but I could be > mistaken. It's possible. > What is definitely not useful is to put some other buffer in the window, > which was never shown in that window before. When a view-mode window pops up > (new frame), quitting the mode should not stick some unrelated buffer in > that window. In this use case, think of a window such as *Help* as a > (non-modal) dialog box. When you quit that dialog box, you don't want its > window to remain, filled with some extraneous buffer that you happened to > access half an hour ago or 3 days ago. That just doesn't make sense. I fully agree with you. But `quit-window' does exactly that when the window is not dedicated: (switch-to-buffer (other-buffer)))) This is the painful default behavior of `Info-exit' when you do not use a separate frame (try with Emacs -Q, split the *scratch* window, invoke Info, and quit - you won't get the "previously selected buffer" as promised by the doc-string of `Info-mode').