From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: RE: View-quit in *Help* restores wrong window when display-buffer-reuse-frames is t Date: Thu, 18 Oct 2007 09:05:35 -0700 Message-ID: References: <4717174B.2040103@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192723781 16404 80.91.229.12 (18 Oct 2007 16:09:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2007 16:09:41 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, dashteacup@insightbb.com To: "martin rudalics" , "Glenn Morris" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 18 18:09:41 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 1IiXwC-0001HH-7V for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Oct 2007 18:09:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiXw4-0004Sf-Sq for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Oct 2007 12:09:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiXte-0001ph-UX for bug-gnu-emacs@gnu.org; Thu, 18 Oct 2007 12:06:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiXtc-0001nK-5j for bug-gnu-emacs@gnu.org; Thu, 18 Oct 2007 12:06:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiXtc-0001n8-0i for bug-gnu-emacs@gnu.org; Thu, 18 Oct 2007 12:06:52 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IiXtX-0006cl-If; Thu, 18 Oct 2007 12:06:47 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l9IG5WFx021677; Thu, 18 Oct 2007 11:05:32 -0500 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id l9IFGoOl013106; Thu, 18 Oct 2007 10:05:31 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-158.us.oracle.com by acsmt351.oracle.com with ESMTP id 3302361671192723529; Thu, 18 Oct 2007 09:05:29 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <4717174B.2040103@gmx.at> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:16778 Archived-At: > So far I identified four groups of users: FWIW and IIUC, I am not in any of those 4 user groups, with any of the expectations you assign to those groups - and I believe that I filed one of the bugs you have been working on. I use non-nil `pop-up-frames', and both `pop-up-windows' and `split-height-threshold' have the default values (t and 500). I have a dedicated *Help* frame. Because of `pop-up-frames', `display-buffer' uses another frame, but I do sometimes switch to a different buffer in the same window. And I do sometimes split a window, so my frames are not always `one-window-p'. If a new window or frame was popped up to display a view-mode buffer, then I expect quitting to delete the window and, if one-window-p, delete the frame too. FWIW, my own code takes care of the latter part, so it is enough for me if the view-mode code simply does `quit-window'. If a new window or frame was not popped up to display the view-mode buffer, that is, if I manually switched to it in an existing window, then I want quitting that buffer/mode to restore the previous buffer that was in that window. Summary: if pop-up, then quit => delete the window/frame if not pop-up, then quit => restore previous buffer for window > - Exiting view-mode should ideally (1) kill a window that > has been popped up for view-mode purposes and (2) show > the earlier contents of the window when it has been > usurpated by view-mode. That would be good. In my case, #1 is what I expect for the *Help* buffer. I have no problem with #2, assuming that it applies to buffers that were not popped up in another window. I haven't followed the current thread closely. If you have a Lisp-only patch I can try, I will do that.