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: Fri, 19 Oct 2007 10:23:44 +0200 Message-ID: <47186990.3030007@gmx.at> References: NNTP-Posting-Host: dough.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 1192782280 23839 80.91.229.10 (19 Oct 2007 08:24:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2007 08:24:40 +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 Fri Oct 19 10:26:34 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1IinBh-000335-Nv for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2007 10:26:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iin9h-0006vf-1e for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2007 04:24:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iin9N-0006nB-UD for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2007 04:24:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iin9N-0006md-68 for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2007 04:24:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iin9N-0006mU-0M for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2007 04:24:09 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Iin9M-0004Gl-O6 for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2007 04:24:09 -0400 Original-Received: (qmail invoked by alias); 19 Oct 2007 08:24:07 -0000 Original-Received: from N840P012.adsl.highway.telekom.at (EHLO [62.47.48.236]) [62.47.48.236] by mail.gmx.net (mp051) with SMTP; 19 Oct 2007 10:24:07 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19obwg88n5o7xQujH/WaM0mk8rp/k1fLf7mfpCDrJ ltx62M/S1iHp5f 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:16786 Archived-At: >>What is the semantics of a "dedicated frame"? > > > I should have said "special-display". > > (add-to-list > 'special-display-buffer-names > (list "*Help*" 'my-display-*Help*-frame...)) I did understand you the first time. The Elisp manual tells me: By default, special display means to give the buffer a dedicated frame. No special semantics for "quitting" or "deleting" dedicated frames are given. There's a short remark in the Emacs manual "Killing the special buffer deletes its frame automatically." but I'm not sure whether you want to kill the Help buffer and I don't know what to do when you manually switched to another buffer in that frame in between. >>If you "dedicate" a frame to the Help buffer why do you want to switch >>to a different buffer in that frame? Why do you want to split that >>frame's window? > > > I don't; I never said I did. I was describing my overall use, including my > use of `pop-up-frames', not my use of *Help*. You expressed some assumptions > about users with non-nil `pop-up-frames' and their never reusing a window > and never splitting a window. I was explaining that although I have > `pop-up-frames' non-nil, I still sometimes reuse or split some windows (not > *Help*, but others). > If you do not "reuse" Help windows I don't understand why the proposed patch doesn't work for you. You would have to give me a recipe to reproduce the incorrect behavior. Problems may arise if and only if a Help window was reused to display another buffer. >>I already explained that by default Help buffers are not dedicated thus >>`quit-window' won't necessarily delete the associated frame. > > > And I explained that I don't personally need you to delete the frame - I do > that myself. Deleting the window is sufficient (for *Help* or any other > buffer). Your personal modifications won't be of any help to other Emacs users. Let's make this generally usable. > If there was a buffer in the window before the view-mode buffer is placed in > it, then it's OK to show that buffer after quitting the view-mode buffer. If > there was no other buffer in the window before the view-mode buffer, then > there is no reason to display any buffer at all there - just delete the > window. I already explained that tracking the appearance of buffers in a window is non-trivial and has to be done in `window-configuration-change-hook'. So far the decision about how to quit view-mode must be established when _entering_ view-mode. > And if the view-mode buffer is `one-window-p', then delete the frame > also. If people agree that typing `q' should be allowed to unequivocally delete a frame.