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: bug#7533: 24.0.50; `dired-mark-pop-up': delete frame afterwards if `pop-up-frames' Date: Thu, 16 Dec 2010 10:27:48 -0800 Message-ID: <9FA3601ABD5C49E79DDAF60EAFFCD7F0@us.oracle.com> References: <90E09641E9264B37932D2315E5E7E2EA@us.oracle.com><4CF7EDED.5090500@gmx.at><44FB8E26FD824BB18AE8A367F560C091@us.oracle.com><4CF8A7B2.5080306@gmx.at><1880532436F6447B97DC61F6050FF29F@us.oracle.com><4CF93418.9090405@gmx.at><4CF939E7.6030603@gmx.at> <87zkslw43z.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292526094 25419 80.91.229.12 (16 Dec 2010 19:01:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 19:01:34 +0000 (UTC) Cc: 7533@debbugs.gnu.org To: "'Chong Yidong'" , "'martin rudalics'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 16 20:01:30 2010 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.69) (envelope-from ) id 1PTJ4P-0005Gy-DX for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 20:01:29 +0100 Original-Received: from localhost ([127.0.0.1]:51305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTIwh-0008Im-G0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 13:52:55 -0500 Original-Received: from [140.186.70.92] (port=39680 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTIwY-0008H7-Kl for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2010 13:52:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTIwX-0000Ap-Iz for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2010 13:52:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTIwX-0000Al-HR for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2010 13:52:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PTIVi-0007z7-0R; Thu, 16 Dec 2010 13:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Dec 2010 18:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7533 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7533-submit@debbugs.gnu.org id=B7533.129252386230645 (code B ref 7533); Thu, 16 Dec 2010 18:25:01 +0000 Original-Received: (at 7533) by debbugs.gnu.org; 16 Dec 2010 18:24:22 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTIV4-0007yD-5S for submit@debbugs.gnu.org; Thu, 16 Dec 2010 13:24:22 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTIV2-0007y2-Oq for 7533@debbugs.gnu.org; Thu, 16 Dec 2010 13:24:21 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBGIUc8A031573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 16 Dec 2010 18:30:39 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBGIUQgH027735; Thu, 16 Dec 2010 18:30:37 GMT Original-Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 881612011292524069; Thu, 16 Dec 2010 10:27:49 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 16 Dec 2010 10:27:49 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcuUBMSji4UDtO6SSS+1BaNJ35jDTgJRn36A In-Reply-To: <87zkslw43z.fsf@stupidchicken.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 16 Dec 2010 13:25:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:42561 Archived-At: > > Meanwhile we should restore the old behavior. Chong could > > you please apply the attached patch. > > Done. FWIW, I still see the problem in the latest Windows binary: In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-12-13 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include' Martin's patch fixes the problem only for non-nil `pop-up-frames'. (So strictly speaking it responds to the Subject line of the bug. But it does not respond fully to what I meant in the bug report.) It does not fix the problem if the buffer (e.g. `*Marked Files*') is popped up in a separate frame for some other reason, for example, via `special-display-popup-frame'. To reproduce: emacs -Q M-x set-variable RET special-display-regexps RET ("[ ]?[*][^*]+[*]") RET The bug needs to be fixed so that _whenever_ the buffer is shown in a separate frame that frame gets deleted when the dialog is finished (e.g. when the Dired command to copy/delete/... is finished). If you think a full fix is too complicated for now for some reason, then at least bind `q' in that popped up buffer so that `q' invokes `quit-window' (_not_ `View-quit'), which will delete the frame. IOW, as a workaround, at least give it the behavior of *Buffer List*, where hitting `q' deletes the frame, Obliging the user to hit `q' is not the real solution. It just provides a temporary workaround and should be considered only if you conclude that implementing a good solution is too hard for the moment. Alternatively, restore the behavior in Emacs 22, where even if `special-display-regexps' would normally cause the buffer to be displayed in a separate frame it is not: it is popped up in a window of the current frame. That overrides the user's setting, but at least it is not annoying.