From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris 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 13:52:54 -0400 Message-ID: References: <70FBB428-1B37-4C3B-A60D-E3A7139E384C@gmail.com> <4711D670.6060508@gmx.at> <4717174B.2040103@gmx.at> <4717D837.6040706@gmx.at> <4718674A.1080505@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192816395 11733 80.91.229.12 (19 Oct 2007 17:53:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2007 17:53:15 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, dashteacup@insightbb.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 19 19:53:15 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 1Iiw21-0004Mn-8o for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2007 19:53:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iiw1t-00052t-Ee for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2007 13:53:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iiw1r-00052n-9u for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2007 13:52:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iiw1o-00052P-RU for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2007 13:52:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iiw1o-00052L-Ml for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2007 13:52:56 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iiw1o-0004mW-Gm for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2007 13:52:56 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Iiw1m-0003jn-FD; Fri, 19 Oct 2007 13:52:54 -0400 X-Spook: bank halcon AIMSX Honduras infowar Majic ASDIC gamma X-Ran: RuCLO{OrAnDuC>nIL8S&O&a7EK\(d&itn%qE,ACo]Q[:}so|u"-*p&#{1z(.Umj%mIM3}R X-Hue: black X-Attribution: GM In-Reply-To: <4718674A.1080505@gmx.at> (martin rudalics's message of "Fri, 19 Oct 2007 10:14:02 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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:16788 Archived-At: martin rudalics wrote: >>>>http://lists.gnu.org/archive/html/emacs-devel/2007-07/msg00103.html [...] > If, with Emacs -Q, I do > > (setq view-remove-frame-by-deleting t) > (setq pop-up-frames t) > > pop up a Help buffer and type `q' the frame gets deleted. What else > should I do? In case there's any confusion, I'm agreeing that your patch seems like a definite improvement and handles all the cases you listed. But FWIW, it does not seem to improve the behaviour described in the URL quoted above (multiple frames created by hand, with pop-up-frames non-nil, which seems a reasonable thing to do). To be precise: emacs -Q -f make-frame C-h f find-file C-x 0 q -> frame gets iconified (or deleted if view-remove-frame-by-deleting is non-nil). Burying the help buffer and leaving the frame alone (since it was created manually) would seem like the Right Thing here. The second problem can basically be summarized as quit only working once. Eg: emacs -Q C-h find-file C-x 1 C-x b *Help* q -> "q" has no effect at all