From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Luc Teirlinck <teirllm@dms.auburn.edu>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Bugs in newly added completion capabilities.
Date: Thu, 30 Jun 2005 13:42:15 -0400 [thread overview]
Message-ID: <jwv4qbfd9wn.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <buovf3w9tb1.fsf@mctpc71.ucom.lsi.nec.co.jp> (Miles Bader's message of "Thu, 30 Jun 2005 16:50:58 +0900")
>> Yes, but let me first make sure I understand. Is the reason that we
>> do not want _any_ symbol as car of the list that forbidding _any_
>> symbol as car of the list actually seems _more natural_ than just
>> forbidding lambda? It seems that any symbol other than lambda can not
>> be mistaken for the car of an anonymous lambda expresion and hence
>> could not lead to ambiguity.
> One possible reason is that if we allow almost all symbol lists, people
> will tend to overlook the need for a `lambda' special case, write their
> code to use straight-forward symbol lists -- and odd bugs will arise
> when lambda does happen to occur at the beginning of such a list.
> Always requiring an initial "" forces the problem to be dealt with, so
> will make such code more robust.
I don't like the idea of changing assoc-string to also match symbols.
Maybe it won't lead to any catastrophe, but it just sounds wrong.
I don't like the idea of adding "" at the beginning of a completion table.
Here I have a good reason, which is that it changes the behavior:
(try-completion "" '("aaa" "aab" "aac")) => "aa"
(try-completion "" '("" "aaa" "aab" "aac")) => ""
Honestly, what's so great about being able to use lists of symbols rather
than lists of strings? In Emacs-21, we don't even allow lists of strings,
but only lists of pairs whose car is a string, and people haven't complained
about it.
Stefan
next prev parent reply other threads:[~2005-06-30 17:42 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-28 2:27 Bugs in newly added completion capabilities Luc Teirlinck
2005-06-28 18:47 ` Richard M. Stallman
2005-06-29 3:50 ` Luc Teirlinck
2005-06-29 20:43 ` Richard M. Stallman
2005-06-30 2:29 ` Luc Teirlinck
2005-06-30 7:48 ` Kim F. Storm
2005-06-30 7:50 ` Miles Bader
2005-06-30 12:51 ` Kim F. Storm
2005-06-30 17:19 ` Luc Teirlinck
2005-06-30 17:42 ` Stefan Monnier [this message]
2005-06-30 18:28 ` Luc Teirlinck
2005-06-30 19:42 ` Stefan Monnier
2005-07-01 8:14 ` Kim F. Storm
2005-07-01 14:59 ` Stefan Monnier
2005-07-02 12:32 ` Richard M. Stallman
2005-06-30 18:32 ` Luc Teirlinck
2005-06-30 19:43 ` Stefan Monnier
2005-07-01 4:03 ` Richard M. Stallman
2005-07-01 4:36 ` Miles Bader
2005-07-01 7:33 ` David Kastrup
2005-07-01 7:55 ` Miles Bader
2005-07-01 8:34 ` Kim F. Storm
2005-07-01 22:45 ` Richard M. Stallman
2005-07-01 8:30 ` Kim F. Storm
2005-06-30 21:29 ` Richard M. Stallman
2005-06-29 3:56 ` Luc Teirlinck
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv4qbfd9wn.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
--cc=teirllm@dms.auburn.edu \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).