From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#5495: 23.1.90; symbol completion fails Date: Mon, 1 Feb 2010 10:06:16 -0600 Message-ID: <19302.64504.20787.552030@lukas.physics.niu.edu> References: <878wbgfm6o.fsf@regnitz.physics.niu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265045741 10546 80.91.229.12 (1 Feb 2010 17:35:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Feb 2010 17:35:41 +0000 (UTC) Cc: 5495@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 01 18:35:34 2010 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.69) (envelope-from ) id 1Nc0BQ-0008Dq-6Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Feb 2010 18:35:32 +0100 Original-Received: from localhost ([127.0.0.1]:44570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nc0BP-00075i-Fk for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Feb 2010 12:35:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nc03b-0006dn-Sa for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2010 12:27:27 -0500 Original-Received: from [199.232.76.173] (port=58129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nc03b-0006cs-2r for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2010 12:27:27 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nc03Z-00085t-Fw for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2010 12:27:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43401) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nc03Z-00085n-5x for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2010 12:27:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nbzfy-0001Wj-EF; Mon, 01 Feb 2010 12:03:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Feb 2010 17:03:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5495 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5495-submit@debbugs.gnu.org id=B5495.12650437265830 (code B ref 5495); Mon, 01 Feb 2010 17:03:02 +0000 Original-Received: (at 5495) by debbugs.gnu.org; 1 Feb 2010 17:02:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nbzf4-0001Vz-Ag for submit@debbugs.gnu.org; Mon, 01 Feb 2010 12:02:06 -0500 Original-Received: from essmail.ess.niu.edu ([131.156.1.18]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nbyn7-0000nq-OE for 5495@debbugs.gnu.org; Mon, 01 Feb 2010 11:06:22 -0500 Original-Received: from lukas.physics.niu.edu (lukas.physics.niu.edu [131.156.85.221]) by essmail.ess.niu.edu (8.14.3/8.14.3) with ESMTP id o11G6GP3023157; Mon, 1 Feb 2010 10:06:16 -0600 (CST) In-Reply-To: X-Mailer: VM 8.2 trial under 23.1.50.1 (x86_64-unknown-linux-gnu) X-Mailman-Approved-At: Mon, 01 Feb 2010 12:02:05 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 01 Feb 2010 12:03:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:34839 Archived-At: On Mon Feb 1 2010 Stefan Monnier wrote: > > I am having trouble with symbol completion. The lisp manual says > > about `try-completion' > > > The value of COLLECTION must be a list of strings or symbols, > > an alist, an obarray, ... > > That's incorrect, a list of symbols is not supported (although it > somewhat works). Thanks for the clarification. So my bug report refers really to this node of the elisp manual. In particular, it says Symbols are converted to strings using `symbol-name'. > It can be made to work, but then it will mysteriously break again when > the first symbol in the list happens to be a lambda. One could specify that lambda expressions take precedence, i.e., if and only if (functionp collection) returns non-nil, collection will be interpreted as a function. Otherwise a list will be interpreted as a list of symbols (or a list of strings, etc.). I would find that useful. But I'll be happy to give this feature request low importance. > Use an alist with symbols as keys, or use an obarray. Otherwise > pass your list of symbols through (mapcar 'symbol-name ...) to > turn it into a list of strings. Sure. Roland