From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics 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 10:49:31 +0200 Message-ID: <500BBE9B.3080006@gmx.at> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342946981 6754 80.91.229.3 (22 Jul 2012 08:49:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2012 08:49:41 +0000 (UTC) Cc: 11939@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 22 10:49:40 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 1Ssrr9-0005Ib-5f for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jul 2012 10:49:39 +0200 Original-Received: from localhost ([::1]:36397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssrr8-0006eP-Hq for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jul 2012 04:49:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssrr6-0006eK-04 for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 04:49:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ssrr4-0002eH-Qt for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 04:49:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ssrr4-0002eD-Na for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 04:49:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SsrxJ-0001NH-Kq for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2012 04:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Jul 2012 08:56: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.13429473295245 (code B ref 11939); Sun, 22 Jul 2012 08:56:01 +0000 Original-Received: (at 11939) by debbugs.gnu.org; 22 Jul 2012 08:55:29 +0000 Original-Received: from localhost ([127.0.0.1]:56811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ssrwm-0001MY-PC for submit@debbugs.gnu.org; Sun, 22 Jul 2012 04:55:29 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:53962) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1Ssrwl-0001MR-Cg for 11939@debbugs.gnu.org; Sun, 22 Jul 2012 04:55:28 -0400 Original-Received: (qmail invoked by alias); 22 Jul 2012 08:48:59 -0000 Original-Received: from 62-47-34-6.adsl.highway.telekom.at (EHLO [62.47.34.6]) [62.47.34.6] by mail.gmx.net (mp001) with SMTP; 22 Jul 2012 10:48:59 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19DZbRy1ihDYTCmoQUa1YWP0HUFYI8aQsM3jrHNKx d6X9QiL0GrATpH In-Reply-To: <2F2A096477C74296B873241B8AD78AF5@us.oracle.com> X-Y-GMX-Trusted: 0 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:62263 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? > 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. >> `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. > All I meant was that (I'm guessing that): > > a. Emacs asks the question, directing focus to the minibuffer frame for the user > to input a response. > > b. MS Windows creates the new frame and gives it the focus, taking the focus > away from the minibuffer. I can live with that assumption. >> > As I mentioned in my other reply today, you can, when the >> > minibuffer is active, explicitly switch the focus to the >> > *Completions* frame, to do something there >> > (e.g. move to some completion candidate). >> >> Which function precisely does that? > > With just oneonone.el loaded (which creates a standalone minibuffer and > special-display *Help* and *Completions*, with the latter frame redirected to > the minibuffer frame), even just `C-x o' during completion will do it. I.e., > from the minibuffer, `C-x o' moves you (focus) to *Completions*. > > Or you can click *Completions* with the mouse - same effect. > > In Icicles, you can use C- to flip back and forth between the minibuffer > and *Completions*. C- is command `switch-to-*Completions*' in the > minibuffer completion keymaps, and C- is command > `icicle-insert-completion' in keymap `completion-list-mode-map'. 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. martin