From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Dempsky Newsgroups: gmane.emacs.bugs Subject: bug#5030: 23.1.50; Unexpected minibuffer tab completion behavior Date: Tue, 24 Nov 2009 17:09:50 -0800 Message-ID: Reply-To: Matthew Dempsky , 5030@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1259156984 1030 80.91.229.12 (25 Nov 2009 13:49:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2009 13:49:44 +0000 (UTC) To: 5030@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 25 14:49:37 2009 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.50) id 1NDIFS-0007WS-1F for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 14:49:36 +0100 Original-Received: from localhost ([127.0.0.1]:35557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDIFR-0003PZ-MC for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 08:49:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ND6fJ-0000pp-4Z for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2009 20:27:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ND6fF-0000nv-1G for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2009 20:27:28 -0500 Original-Received: from [199.232.76.173] (port=37792 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ND6fE-0000nl-Lf for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2009 20:27:24 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59713) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ND6fE-0008Eb-79 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2009 20:27:24 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAP1RM3K018566; Tue, 24 Nov 2009 17:27:22 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAP1F83Q017601; Tue, 24 Nov 2009 17:15:08 -0800 Resent-Date: Tue, 24 Nov 2009 17:15:08 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Matthew Dempsky Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 25 Nov 2009 01:15:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5030 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5030-submit@emacsbugs.donarmstrong.com id=B5030.125911139717060 (code B ref 5030); Wed, 25 Nov 2009 01:15:07 +0000 Original-Received: (at 5030) by emacsbugs.donarmstrong.com; 25 Nov 2009 01:09:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-qy0-f197.google.com (mail-qy0-f197.google.com [209.85.221.197]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAP19uwS017057 for <5030@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 17:09:57 -0800 Original-Received: by qyk35 with SMTP id 35so3326637qyk.19 for <5030@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 17:09:50 -0800 (PST) Original-Received: by 10.224.66.29 with SMTP id l29mr3620192qai.210.1259111390631; Tue, 24 Nov 2009 17:09:50 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 24 Nov 2009 20:27:28 -0500 X-Mailman-Approved-At: Wed, 25 Nov 2009 08:42:57 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:32905 Archived-At: It seems like the unexpected buffer switching is because the 'dedicated' flag on the temporary window created for *Completions* is getting cleared by set-window-buffer. My understanding of the situation so far is: - The `(with-output-to-temp-buffer "*Completions*" ...)' form in minibuffer-completion-help results in `display-buffer' being called with `display-buffer-mark-dedicated' bound to `soft'. - The `(and pop-up-windows ...)' clause of `display-buffer' is evaluated*, and calls `(set-window-dedicated-p window-to-use 'soft)'. - However, the `window--display-buffer-2' call then calls `set-window-buffer', which sets `w->dedicated = Qnil'. - Later, when `(bury-buffer)' is called to hide the minibuffer help, it sees the window is not dedicated, so it switches to a new buffer instead of killing the window. (* I haven't bothered yet to look into why that particular clause is evaluated, but I don't think it matters; it's just the one that stepping through the code took me to.)