From: "Roland Winkler" <Roland.Winkler@physik.uni-erlangen.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 5495@debbugs.gnu.org
Subject: bug#5495: 23.1.90; symbol completion fails
Date: Mon, 1 Feb 2010 10:06:16 -0600 [thread overview]
Message-ID: <19302.64504.20787.552030@lukas.physics.niu.edu> (raw)
In-Reply-To: <jwvfx5ldm4r.fsf-monnier+emacs@gnu.org>
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
next prev parent reply other threads:[~2010-02-01 16:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-30 0:53 bug#5495: 23.1.90; symbol completion fails Roland Winkler
2010-02-01 15:16 ` Stefan Monnier
2010-02-01 16:06 ` Roland Winkler [this message]
2011-07-13 16:32 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19302.64504.20787.552030@lukas.physics.niu.edu \
--to=roland.winkler@physik.uni-erlangen.de \
--cc=5495@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.