emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] (icomplete-vertical-mode): Add support for affixations and,


From: João Távora
Subject: Re: [PATCH] (icomplete-vertical-mode): Add support for affixations and, annotations
Date: Thu, 27 May 2021 00:17:58 +0100

On Wed, May 26, 2021 at 11:20 PM Dmitry Gutov <dgutov@yandex.ru> wrote:
>
> On 27.05.2021 00:45, Juri Linkov wrote:
> > we could have one function
> >
> >    :resolution-function
> >    (lambda (str fields)
> >      (mapcar (lambda (field)
> >                (pcase field
> >                  ('suffix (if (fboundp (intern-soft str)) " <f>"))
> >                  ('kind (elisp--company-kind str))
> >                  ('doc-buffer (elisp--company-doc-buffer str))
> >                  ('docsig (elisp--company-doc-string str))
> >                  ('location (elisp--company-location str))))
> >              fields))
>
> The downside should be obvious: you waste extra CPU and memory when you
> only need some of these values, and not all of them.

I don't see why, though.  Isn't the `fields` arg supposed to solve just
that problem?  Or am I missing something?

João



reply via email to

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