[Top][All Lists]

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

Re: complexity in minibuffer

From: Juri Linkov
Subject: Re: complexity in minibuffer
Date: Thu, 03 Jun 2021 01:11:51 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> I think it has to do with the way Juri (or someone else) implemented
> affixation function and annotation function, which was what I was trying
> to touch to experiment with resolution-function ideas. Sometimes as completion
> is represented by a cons (string annotation-prefix annotation-suffix)
> sometimes only a string.  It could be a string always, with properties.
> Or a struct.  But let's leave it at string and never cons.

I only added the third element to the list of '(candidate prefix suffix)'.
So either turning it into a struct, or adding text properties would be fine.
But there is no room to extend annotation-function since as can be seen
in your branch annotation-function with text properties would return such
self-referencing ugliness:

  (propertize annotation 'suffix annotation)

Or do you intend resolution-function to do the same but return
a candidate string with text properties?

reply via email to

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