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#11939: 24.1; `save-buffers-kill-emacs' loses minibuffer focus when it calls `list-processes' Date: Mon, 16 Jul 2012 07:23:03 -0700 Message-ID: References: <500173A5.3040608@gmx.at> <1986D90E22154321A44B6E0110CA4F5A@us.oracle.com> <50019C2F.8060103@gmx.at> <6B9036DBFDEF4881AB39804520BF63B3@us.oracle.com> <5002BEC6.3040106@gmx.at> <893E59C2E4F94D6EB910560C9E8C42CD@us.oracle.com> <5002EAF4.5080107@gmx.at> <6F73D04E8EE144E780D602DFEBA48E7B@us.oracle.com> <5003DAF2.2060400@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342448664 25696 80.91.229.3 (16 Jul 2012 14:24:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2012 14:24:24 +0000 (UTC) Cc: 11939@debbugs.gnu.org To: "'martin rudalics'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 16 16:24:24 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqmDj-0004fP-RK for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2012 16:24:20 +0200 Original-Received: from localhost ([::1]:59872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqmDj-0003Tq-4k for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2012 10:24:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqmDe-0003Ti-5Q for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2012 10:24:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqmDY-00032t-5q for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2012 10:24:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqmDY-00032p-25 for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2012 10:24:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SqmJG-0005C8-Ah for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2012 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jul 2012 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11939 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11939-submit@debbugs.gnu.org id=B11939.134244895919895 (code B ref 11939); Mon, 16 Jul 2012 14:30:02 +0000 Original-Received: (at 11939) by debbugs.gnu.org; 16 Jul 2012 14:29:19 +0000 Original-Received: from localhost ([127.0.0.1]:44259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SqmIY-0005Ap-7d for submit@debbugs.gnu.org; Mon, 16 Jul 2012 10:29:19 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:28565) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SqmIW-0005Ai-4e for 11939@debbugs.gnu.org; Mon, 16 Jul 2012 10:29:17 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q6GENJW4026340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 16 Jul 2012 14:23:20 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q6GENISG019491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Jul 2012 14:23:19 GMT Original-Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q6GENIhw004340; Mon, 16 Jul 2012 09:23:18 -0500 Original-Received: from dradamslap1 (/10.159.217.113) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 16 Jul 2012 07:23:18 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <5003DAF2.2060400@gmx.at> Thread-Index: Ac1jMxH+6iLiRre1ROCHUVoOxzHinAAKaT6Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61983 Archived-At: > >> I have attached another version of > >> `with-temp-buffer-window' which now explicitly shifts input > >> focus to the frame selected at the time the macro is called. > >> I hope this will fix the `pop-up-frames' t scenario. > >> I'm afraid it will not fix the problem when you invoke > >> C-x C-c in any window but the minibuffer-only window so we > >> probably have to fix that issue separately. Please try it. > > > > Just what is the recipe to try (e.g. from emacs -Q)? > > With your usual setting load the file and test the shell and the dired > scenarios. I might be misunderstanding you, but I did this: 1. Started Emacs with my normal setup (not from emacs -Q). 2. Loaded the code you sent. 3. M-x shell 4. Clicked the title bar of the standalone minibuffer frame, to select it. (Did that since you said that your code would not help with the usual case, where another frame has the focus). 5. C-x C-c The result was the same as before: typing (e.g. "yes") had no effect. The minibuffer frame apparently lost the focus as soon as the new *Process List* was created. And when I canceled, the supposed special-display buffer *Process List* was replaced in its frame by the buffer that was current when I hit C-x C-c. This part seems to be the same (separate) bug that I reported wrt *Help*. In this case, the special-display buffer *Process List* was defined via `special-display-regexps' and not (as for *Help*) via `special-display-buffer-names'. So it seems there is a general bug that a special-display buffer is no longer really special-display: its window/frame is not dedicated as it should be. Burying its buffer should not replace that buffer in its dedicated window/frame. It should remove that window/frame (I have `frame-auto-hide-function' = `delete-frame'). HTH. Let me know if I did not understand the recipe correctly.