From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: completion-auto-help Date: Sun, 13 Nov 2005 13:06:50 -0800 Message-ID: References: <87fyq0p9g1.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1131916078 926 80.91.229.2 (13 Nov 2005 21:07:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2005 21:07:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 13 22:07:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EbP4d-0008BD-45 for ged-emacs-devel@m.gmane.org; Sun, 13 Nov 2005 22:07:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbP4b-0006Gu-5x for ged-emacs-devel@m.gmane.org; Sun, 13 Nov 2005 16:07:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EbP4E-0006GU-VW for emacs-devel@gnu.org; Sun, 13 Nov 2005 16:07:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EbP49-0006EQ-L1 for emacs-devel@gnu.org; Sun, 13 Nov 2005 16:07:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbP49-0006E9-Ad for emacs-devel@gnu.org; Sun, 13 Nov 2005 16:07:09 -0500 Original-Received: from [148.87.122.30] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EbP49-0006TV-02 for emacs-devel@gnu.org; Sun, 13 Nov 2005 16:07:09 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id jADL713s016374 for ; Sun, 13 Nov 2005 14:07:01 -0700 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jADL70N1027057 for ; Sun, 13 Nov 2005 14:07:00 -0700 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-81-128.vpn.oracle.com [141.144.81.128]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id jADL6x8b027049 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sun, 13 Nov 2005 14:07:00 -0700 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87fyq0p9g1.fsf-monnier+emacs@gnu.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45897 Archived-At: > minibuffer-setup-hook is used for all > entrance to the minibuffer, not just for completion functions. > I'm looking for a hook specific to completion. I think we > still need a hook that runs whenever a completion function > (e.g. completing-read) displays its prompt. Check the value of minibuffer-completion-table in your hook. Not sure what you mean. Do you mean to check, inside the hook, whether that var is non-nil, and use that test to determine whether or not we are completing? That is, use (not (null minibuffer-completion-table)) as a kind of `completing-p'? If that's what you mean, it doesn't seem to work - `minibuffer-completion-table' is not nil, even when doing things like read-from-minibuffer (which doesn't use completion). Hoping I misunderstand and there is a simple solution.