help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Completion: display of candidates


From: Stefan Monnier
Subject: Re: Completion: display of candidates
Date: Mon, 18 Feb 2019 08:26:44 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> 1. The docs for completion-table-dynamic say that the given function
>    should return an alist

That's an error: the return value should be a completion table.

> 2. Is there a way to display and complete on a different representation
>    than the actual completion candidates?  In my case, my-func returns
>    absolute file names but I'd like to complete on just the basename,
>    and display the entries in the form of "basename (directory)".

You can modify `my-func` to return file names in the form
"basename (directory)", no?


        Stefan




reply via email to

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