From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: completing-read return meta-information?
Date: Thu, 17 Sep 2015 07:52:20 -0500 [thread overview]
Message-ID: <86d1xhxl6j.fsf@stephe-leake.org> (raw)
In-Reply-To: <jwvsi6d6ddl.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 16 Sep 2015 21:38:19 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> There is a desire to refactor this so that the only difference is inside
>> the completion table.
>
> I think the uniquification shouldn't be done in the completion table.
>
> All the fancy rewriting to make things shorter should be done in the
> completion-style, instead. The style code can choose to return different
> kinds of results for completion-all-completions (which gets displayed
> in *Completions*, in Company, or in Icomplete-mode and where we should
> try and reduce redundancy) and for completion-try-completion.
>
> So completion-all-completions can return names like "foo<bar>" while
> completion-try-completion can return "~/src/file/foo/toto/bar.agda".
And I gather completing-read returns the result of
completion-try-completion.
Ok, I'll see if I can figure out how to implement completion style code.
--
-- Stephe
next prev parent reply other threads:[~2015-09-17 12:52 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 [this message]
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
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=86d1xhxl6j.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--cc=emacs-devel@gnu.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 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.