From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Bugs in newly added completion capabilities. Date: Thu, 30 Jun 2005 09:48:44 +0200 Message-ID: References: <200506280227.j5S2Rln23310@raven.dms.auburn.edu> <200506290350.j5T3o7c25749@raven.dms.auburn.edu> <200506300229.j5U2TrL01627@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120119234 11712 80.91.229.2 (30 Jun 2005 08:13:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2005 08:13:54 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 10:13:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnuAg-0004b6-Kc for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2005 10:13:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnuIt-0007zv-Ah for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2005 04:21:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dntzk-0006Sv-Ee for emacs-devel@gnu.org; Thu, 30 Jun 2005 04:02:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dntzb-0006OO-1i for emacs-devel@gnu.org; Thu, 30 Jun 2005 04:01:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dntza-00069f-23 for emacs-devel@gnu.org; Thu, 30 Jun 2005 04:01:50 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dnts5-0004Fy-LE; Thu, 30 Jun 2005 03:54:05 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id C5089262887; Thu, 30 Jun 2005 09:49:03 +0200 (CEST) Original-To: Luc Teirlinck In-Reply-To: <200506300229.j5U2TrL01627@raven.dms.auburn.edu> (Luc Teirlinck's message of "Wed, 29 Jun 2005 21:29:53 -0500 (CDT)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:39942 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39942 Luc Teirlinck writes: > ELISP> (try-completion "b" '(aa bb)) > *** Eval error *** Invalid function: (aa bb) > > Note that `try-completion' does not believe that aa is a function > called with argument bb. It believes that (aa bb) is an anonymous > lambda expression. It could know that it is not, because the car is > not lambda. (That is what the patch I sent did. It checked whether > the car was lambda.) I agree that checking for lambda is better -- it makes the ordinary cases work without hacks, so only in the case where lambda itself is in the list, special attention is needed. > > I agree, test-completion should be fixed. Would you like > to fix that? > > There are several ways to do that. The easiest one would probably be > to make assoc-string be able to handle symbols as well as strings. > But maybe that would be too radical? It could break existing code if somebody already abuses assoc-string to find a string in a mixed list of strings and symbols. But I'd say it would be ok to change it as you suggest. -- Kim F. Storm http://www.cua.dk