From: Dmitry Gutov <dgutov@yandex.ru>
To: Stephen Leake <stephen_leake@stephe-leake.org>, emacs-devel@gnu.org
Subject: Re: completing-read return meta-information?
Date: Mon, 28 Sep 2015 08:58:38 +0300 [thread overview]
Message-ID: <5608D70E.9030406@yandex.ru> (raw)
In-Reply-To: <86oaguv5sp.fsf@stephe-leake.org>
On 09/22/2015 06:21 PM, Stephen Leake wrote:
>> PS: Also, as a user, I think I'd rather see names like "dir/file" than
>> "file<dir>".
>
> You only need directory names when there are conflicting names; on many
> paths, there will be none or few.
I think the key distinction here is between "need to input" and "need to
see". As long as the user doesn't need to input the directory, I think
it's fine if they end up seeing it at some point.
> I mainly used that style because it meant the user string is a prefix of
> all the completions, which some of the completion primitives expect, so
> it made things simpler.
This sounds like it'll filter out all results if the user *does* input
the directory, in all or at least some of the cases.
Please think back to the examples I gave in the other thread.
> On the other hand, I use the postfix uniquify style for buffer names, so
> I'm used to it :).
>
> I'll try to implement directory completion in both styles; this should
> be a user preference, just as it is in buffer names.
Having it customizable would be ideal, but I'm not sure it's possible to
have uniquify-style completions without excluding some valid usage
scenarios, like mentioned above.
prev parent reply other threads:[~2015-09-28 5:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 13:57 completing-read return meta-information? Stephen Leake
2015-09-16 15:00 ` Drew Adams
2015-09-16 17:06 ` Stephen Leake
2015-09-16 17:28 ` Drew Adams
2015-09-16 17:45 ` Stephen Leake
2015-09-17 1:38 ` Stefan Monnier
2015-09-17 12:52 ` Stephen Leake
2015-09-17 13:24 ` Stefan Monnier
2015-09-17 18:14 ` Dmitry Gutov
2015-09-18 0:54 ` Stefan Monnier
2015-09-21 16:46 ` Stephen Leake
2015-09-21 19:12 ` Stephen Leake
2015-09-21 19:51 ` Stefan Monnier
2015-09-22 15:21 ` Stephen Leake
2015-09-26 10:54 ` Stephen Leake
2015-09-27 15:45 ` Stefan Monnier
2015-09-28 5:50 ` Dmitry Gutov
2015-09-28 15:59 ` Stephen Leake
2015-09-28 16:13 ` Stephen Leake
2015-09-28 19:42 ` Stefan Monnier
2015-09-28 5:58 ` Dmitry Gutov [this message]
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=5608D70E.9030406@yandex.ru \
--to=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=stephen_leake@stephe-leake.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).