emacs-devel
[Top][All Lists]
Advanced

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

Re: Add user customization fido-completion-styles


From: Eli Zaretskii
Subject: Re: Add user customization fido-completion-styles
Date: Tue, 02 Jun 2020 21:35:18 +0300

> From: João Távora <joaotavora@gmail.com>
> Cc: drew.adams@oracle.com,  emacs-devel@gnu.org
> Date: Tue, 02 Jun 2020 19:24:45 +0100
> 
> This is complete-with-action minus docstring, can you help me understand
> what's going on?
> 
> (defun complete-with-action (action collection string predicate)
>   (cond
>    ((functionp collection) (funcall collection string predicate action))
>    ((eq (car-safe action) 'boundaries) nil)
>    ((eq action 'metadata) nil)
>    (t
>     (funcall
>      (cond
>       ((null action) 'try-completion)
>       ((eq action t) 'all-completions)
>       (t 'test-completion))
>      string collection predicate))))

What is 'collection'? is it a function?

Anyway, I suggest to run the same experiment after loading all the
code involved in this as *.el files (not *.elc).  That should show a
more detailed profile, which hopefully will give a clue.



reply via email to

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