[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completing-read return meta-information?

From: Stephen Leake
Subject: Re: completing-read return meta-information?
Date: Thu, 17 Sep 2015 07:52:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt)

Stefan Monnier <address@hidden> 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

Ok, I'll see if I can figure out how to implement completion style code.

-- Stephe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]