From: Drew Adams <drew.adams@oracle.com>
To: Dmitry Gutov <dgutov@yandex.ru>,
Ryan Thompson <rct@thompsonclan.org>,
27193@debbugs.gnu.org
Subject: bug#27193: 25.2; tmm should use completing-read-default
Date: Fri, 2 Jun 2017 15:19:40 -0700 (PDT) [thread overview]
Message-ID: <236c968a-a11f-4a5a-88bc-f60edb50aa18@default> (raw)
In-Reply-To: <669d7dff-a4bf-75b2-1652-6217efb84c72@yandex.ru>
> > The case that needs to be made for your proposal is really (IMO) that
> > there are /NO/ values of `completing-read-function', apart from
> > `completing-read-default', which would be compatible with the tmm code.
>
> That would be too strong.
No. That's exactly what you're forcing, if you force
`completing-read-default' as the ONLY possible value.
Precisely that: you allow no other values. The claim
behind that must be that ALL other values would be
problematic and so must be disallowed.
> > I don't think you can make that case. I sense you
> > are extrapolating from your own particular use of
> > `completing-read-function' (and similar uses).
>
> This is ridiculous. If there are functions that adhere to the contract
> of completing-read-function, and tmm can't work with them, tmm should
> use completing-read-default, and that's that.
"Adhere to the contract of `completing-read-function'"?
Are you kidding? What contract is that?
(defvar completing-read-function 'completing-read-default
"The function called by `completing-read' to do its work.
It should accept the same arguments as `completing-read'.")
Just accept the arguments - that's the only contract.
"Do the work" of `completing-read' is completely vague.
That means that anytime you can come up with a function that
accepts those args and causes trouble, `completing-read-default'
should be imposed as the only possible value.
THAT is ridiculous.
> I'll install the submitted patch in a few days if someone
> doesn't beat me to it.
Of course you will.
> > The result is not even recognizable as completing-read.
> >
> > I don't think so. Certainly no more unrecognizable than Ido...
>
> You are mixing up concepts right and left. E.g. APIs with their callers.
Nonsense. Ido's completion behavior is as far from that of
vanilla `completing-read' as is Tmm's completion behavior
("the result").
next prev parent reply other threads:[~2017-06-02 22:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-02 4:50 bug#27193: 25.2; tmm should use completing-read-default Ryan
2017-06-02 15:26 ` Drew Adams
2017-06-02 17:37 ` Ryan Thompson
2017-06-02 20:45 ` Ryan Thompson
2017-06-02 21:25 ` Drew Adams
2017-06-02 21:37 ` Dmitry Gutov
2017-06-02 22:19 ` Drew Adams [this message]
2017-06-02 22:24 ` Dmitry Gutov
2017-06-02 23:08 ` Ryan Thompson
2017-06-02 23:10 ` Ryan Thompson
2017-06-02 22:52 ` Ryan Thompson
2017-06-03 0:15 ` Drew Adams
2017-06-03 0:02 ` Glenn Morris
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=236c968a-a11f-4a5a-88bc-f60edb50aa18@default \
--to=drew.adams@oracle.com \
--cc=27193@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=rct@thompsonclan.org \
/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).