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 itcalls `list-processes' Date: Sun, 22 Jul 2012 09:55:51 -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><50043C3D.7090201@gmx.at><208B7D7BB4BC4339ADCC1166F76C1CD2@us.oracle.com><500449B7.6070309@gmx.at> <023F63BCBF9442EBAEDCCE9D8A59E5E4@us.oracle.com> <50053558.4040808@gmx.at> <28CDFF761F104E109F9F24CD9BEBD8DD@us.oracle.com> <5006E151.5080301@gmx.at> <1888F8FFBF624D39920F56673A91C4B6@us.oracle.com> <5007E482.3030401@gmx.at> <500A8C2D.8040005@gmx.at> <2F2A096477C74296B873241B8AD78AF5@us.oracle.com> <500BBE9B.3080006@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 1342976200 5731 80.91.229.3 (22 Jul 2012 16:56:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2012 16:56:40 +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 Sun Jul 22 18:56:38 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 1SszSP-000780-S6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jul 2012 18:56:38 +0200 Original-Received: from localhost ([::1]:48221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SszSP-0007PM-80 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jul 2012 12:56:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SszSM-0007Oe-7z for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 12:56:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SszSL-0004c6-4i for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 12:56:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SszSL-0004be-1e for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 12:56:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SszYb-0006Qt-LW for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 13:03:01 -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: Sun, 22 Jul 2012 17:03:01 +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.134297656024700 (code B ref 11939); Sun, 22 Jul 2012 17:03:01 +0000 Original-Received: (at 11939) by debbugs.gnu.org; 22 Jul 2012 17:02:40 +0000 Original-Received: from localhost ([127.0.0.1]:57872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SszYF-0006QK-M3 for submit@debbugs.gnu.org; Sun, 22 Jul 2012 13:02:40 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:51604) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SszYB-0006QC-R9 for 11939@debbugs.gnu.org; Sun, 22 Jul 2012 13:02:37 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q6MGu5FT003791 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 22 Jul 2012 16:56:06 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q6MGu4g6014742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Jul 2012 16:56:05 GMT Original-Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q6MGu4bx018111; Sun, 22 Jul 2012 11:56:04 -0500 Original-Received: from dradamslap1 (/10.159.217.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 22 Jul 2012 09:56:04 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <500BBE9B.3080006@gmx.at> Thread-Index: Ac1n5tby4hHLUxsGSPymF2Pct6PhsQAQwQwA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:62278 Archived-At: > >> Usually, each frame must have a minibuffer window. How > >> else should `read-minibuffer' work? > > > > It can read from the minibuffer in a standalone minibuffer frame? > > Is this a question or an answer? An answer, followed by "Is that not correct?", since I'm not sure we're talking about the same thing. I would expect that it is obvious to you too that Emacs can read from a minibuffer in a standalone frame. And it's not clear to me why that possibility is not an answer to your question. Keep in mind that I do not understand windows, including minibuffer windows, at the level you do. > > That's what I was guessing, that a frame's `minibuffer' > > parameter might be non-nil but it somehow has a minibuffer > > _window_. Seems odd, but I guess these things are at two > > different levels. I am used to the Lisp & frame level - I > > know almost nothing about the C & window level. > > Emacs must be able to work internally even if you make all your frames > minibuffer-less. I never claimed otherwise. But I don't see the relation here. And I do not make all my frames minibuffer-less. So I guess I'm not following you very well. > >> `mouse-leave-buffer-hook' and in a `pre-' or > >> `post-command-hook' check whether that something got executed. > >> Then you can be sure that somewhere in between a > >> `handle-switch-frame' interfered. > > > > Sorry, I don't follow you (and I haven't found where you > > suggested something similar earlier). If you can be more > > specific I'll be glad to try whatever you ask. > > When you want to check of `handle-switch-frame' executions you cannot > trace otherwise and you do not run emacs in the debugger, the most > simple way to trace these is to put some function on > `mouse-leave-buffer-hook', and inspect the output of that > function later on. OK, but I still do not know what you would like me to do/test. Can you give me a recipe to test? > I see. On first reading I missed the term "explictly". IIUC what we > need is a mechansim that switches frames implicitly to the minibuffer > frame. Yes, I think so. But the trick might be to do this only when it should be done.