|
From: | Dmitry Gutov |
Subject: | Re: Allowing completion sources to customize completion display |
Date: | Thu, 23 Nov 2023 16:44:47 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 23/11/2023 01:05, Spencer Baugh wrote:
But the same completion-in-region-function and UI has to be used regardless of whether I'm getting symbol-completion or block-completion - I don't see a way to change completion-in-region-function based on the source.
completion-in-region-function accepts COLLECTION, right? That's usually the completion table. From there, you can access the table's metadata and see its category or etc (if you control the table, it could contain some additional distinctions).
So your custom completion-in-region-function could look up metadata and dispatch to one of the two specific interfaces, couldn't it?
[Prev in Thread] | Current Thread | [Next in Thread] |