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 18:24:34 -0800 Message-ID: References: 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 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259157030 1229 80.91.229.12 (25 Nov 2009 13:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2009 13:50:30 +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:50:23 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 1NDIGC-0007t2-PH for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 14:50:21 +0100 Original-Received: from localhost ([127.0.0.1]:35981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDIGC-0003lg-A2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2009 08:50:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ND7uk-0003r8-W7 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2009 21:47:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ND7uf-0003qB-A7 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2009 21:47:29 -0500 Original-Received: from [199.232.76.173] (port=35755 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ND7uf-0003q8-7J for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2009 21:47:25 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35675) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ND7ue-0005rJ-Ne for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2009 21:47:25 -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 nAP2lMVc025394; Tue, 24 Nov 2009 18:47:22 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAP2U5BA023966; Tue, 24 Nov 2009 18:30:05 -0800 Resent-Date: Tue, 24 Nov 2009 18:30:05 -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 02:30:05 +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.125911588123518 (code B ref 5030); Wed, 25 Nov 2009 02:30:05 +0000 Original-Received: (at 5030) by emacsbugs.donarmstrong.com; 25 Nov 2009 02:24:41 +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 nAP2Od8X023514 for <5030@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 18:24:41 -0800 Original-Received: by qyk35 with SMTP id 35so3349881qyk.19 for <5030@emacsbugs.donarmstrong.com>; Tue, 24 Nov 2009 18:24:34 -0800 (PST) Original-Received: by 10.224.112.5 with SMTP id u5mr3636438qap.362.1259115874537; Tue, 24 Nov 2009 18:24:34 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 24 Nov 2009 21:47:29 -0500 X-Mailman-Approved-At: Wed, 25 Nov 2009 08:42:58 -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:32908 Archived-At: On Mon, Nov 23, 2009 at 10:09 PM, Matthew Dempsky wrote: > Instead, I expect either for that window to continue showing the > *Completion* buffer (refreshed to display just the "aaa" and "aab" > entries) or for that window to be deleted. =A0(I'd prefer the former > behavior.) The last patch I posted achieves the latter behavior. Combining with the (proof-of-concept) patch below, I seem to achieve the former (personally more desirable) behavior. --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -489,10 +489,11 @@ E =3D after completion we now have an Exact match. minibuffer-completion-table minibuffer-completion-predicate))) (if completed - ;; We could also decide to refresh the completions, - ;; if they're displayed (and assuming there are - ;; completions left). - (minibuffer-hide-completions) + (cond + (exact (minibuffer-hide-completions)) + ((get-buffer-window "*Completions*" 0) + (minibuffer-completion-help)) + (t t)) ;; Show the completion table, if requested. (cond ((not exact)