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 whenit calls `list-processes' Date: Thu, 26 Jul 2012 09:21:02 -0700 Message-ID: <548032D12CE14E3689257D609E93482F@us.oracle.com> References: <208B7D7BB4BC4339ADCC1166F76C1CD2@us.oracle.com><500449B7.6070309@gmx.at><023F63BCBF9442EBAEDCCE9D8A59E5E4@us.oracle.com><5005354E.6040306@gmx.at><62CF21F0010048E2BC1391192EB943FF@us.oracle.com><5006E14B.3000407@gmx.at><47731CC5C6EC4ED9AB9E9E05E259572C@us.oracle.com><5007E47B.3050907@gmx.at><446B437450EC47968D15C20D7142296B@us.oracle.com><500A8C0E.4040006@gmx.at><96A974694CF64567A3EAB85185AB3A5C@us.oracle.com><500BBE6F.6020007@gmx.at><1403DD3D67534F53BC023CC99A258DF5@us.oracle.com><838veb209m.fsf@gnu.org> <83r4s2zcp9.fsf@gnu.org><81CFBB36FDCB4CD6B3762F9E00AC8290@us.oracle.com><83fw8iz7et.fsf@gnu.org><60948DD3935D452F85F95174474D06E9@us.oracle.com><838veaz34x.fsf@gnu.org> <83629blssa.fsf@gnu.org> ! <5011116B.4010106@gm x.at> <32A934E820BA4853B84229C32F7145A1@us.oracle! ! .com> <50116AD9.706 09@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 1343319740 4512 80.91.229.3 (26 Jul 2012 16:22:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2012 16:22:20 +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 Thu Jul 26 18:22:20 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 1SuQpQ-0005rW-3t for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2012 18:22:20 +0200 Original-Received: from localhost ([::1]:35674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuQpP-0006X1-0M for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2012 12:22:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuQpH-0006W1-Hc for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2012 12:22:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SuQpG-0006L2-FG for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2012 12:22:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuQpG-0006Ky-Ba for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2012 12:22:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SuQvt-0000Iz-PB for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2012 12:29: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: Thu, 26 Jul 2012 16:29: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.13433200861111 (code B ref 11939); Thu, 26 Jul 2012 16:29:01 +0000 Original-Received: (at 11939) by debbugs.gnu.org; 26 Jul 2012 16:28:06 +0000 Original-Received: from localhost ([127.0.0.1]:41273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SuQuw-0000Ho-Qc for submit@debbugs.gnu.org; Thu, 26 Jul 2012 12:28:06 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:40944) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SuQur-0000HN-Ed for 11939@debbugs.gnu.org; Thu, 26 Jul 2012 12:28:01 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q6QGL44s025451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 26 Jul 2012 16:21:04 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q6QGL33I009701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Jul 2012 16:21:04 GMT Original-Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q6QGL3pI005487; Thu, 26 Jul 2012 11:21:03 -0500 Original-Received: from dradamslap1 (/130.35.179.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 26 Jul 2012 09:21:03 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <50116AD9.70609@gmx.at> Thread-Index: Ac1rSIn1kztcXyYWTW23nReKIahPYwAANMaw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] 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:62417 Archived-At: > > I did not do so explicitly, AFAIK. But perhaps > > read-from-minibuffer (actually the C code for it) does that? > > I do not see anywhere that I do so in my code. > > It indeed selects the window and sets the current buffer. But C-x k > should never offer *Minibuf-0* for killing. Does it really > prompt with *Minibuf-0*? Yes, but (I think) I explained that I have a different command bound to `C-x k'. That command proposes the name of (current-buffer) as the default value. And as I said, the name of the buffer returned by (current-buffer) here is in fact " *Minibuf-0*". > If so, then ... Fcall_interactively... is broken. See above - I am not using `kill-buffer' for `C-x k'. I doubt that anything so basic is broken. > IIUC it means that the current buffer is the buffer of the > minibuffer window (how did that happen?) Yes, that is what I am seeing, confirmed by evaluating (current-buffer) there/then. > but the minibuffer window is not selected. Are you sure? How to know? > What is missing from the form below to reproduce it? > (progn > (add-hook 'after-make-frame-functions > #'(lambda (frame) > (redirect-frame-focus > frame (window-frame (minibuffer-window))))) > (setq pop-up-frame-function > (lambda () (make-frame '((minibuffer . nil))))) > (setq pop-up-frames t) > (display-buffer "*Messages*") > (yes-or-no-p "???")) I don't know. I can try to dig into it later, I suppose (I cannot now). But perhaps try binding `C-x k' to a command that proposes the name of (current-buffer) as the default?