From: Daniel Mendler <mail@daniel-mendler.de>
To: Dmitry Gutov <dgutov@yandex.ru>,
Stefan Monnier <monnier@iro.umontreal.ca>,
Juri Linkov <juri@linkov.net>
Cc: emacs-devel@gnu.org
Subject: Re: Simplification of `affixation-function`
Date: Sun, 25 Apr 2021 20:08:37 +0200 [thread overview]
Message-ID: <1e9bb418-9f1a-68ee-14de-e68f30f88b0a@daniel-mendler.de> (raw)
In-Reply-To: <c524b75e-c920-a547-7d30-5558c76ed287@yandex.ru>
On 4/25/21 7:58 PM, Dmitry Gutov wrote:
> I guess my problem with it is, with the apparent end goal of
> flexibility, it ends up targeting only the default completion UI, and
> the more an alternative UI is different from it, the worse the result
> can look.
>
> And without semantic information, it fails to take advantage of the
> additional features the alternative UIs might provide.
You are right about that. As things stand now the
annotation/affixation-function only work well for the default
completions buffer and the vertical completion UIs. The
completion-at-point popups are very different from that, so it is only
fair if they try to invent their own metadata functions as you are doing
in Company with `company-kind` etc.
However I am a bit critical with regards to the "semantic information".
As far as I understood you use some icon names for that, but this
restricts the purpose of the annotations. Maybe it would be sufficient
to use a more crude solution, where you only specify that the
annotations/affixations must be sufficiently short in order to display
well in the popups, without going the full way to the semantic kinds.
Daniel
next prev parent reply other threads:[~2021-04-25 18:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-24 17:35 Simplification of `affixation-function` Daniel Mendler
2021-04-24 20:22 ` Juri Linkov
2021-04-24 21:17 ` Daniel Mendler
2021-04-24 21:41 ` Juri Linkov
2021-04-24 22:01 ` Daniel Mendler
2021-04-24 22:34 ` Stefan Monnier
2021-04-24 22:48 ` Dmitry Gutov
2021-04-24 22:56 ` Daniel Mendler
2021-04-25 17:58 ` Dmitry Gutov
2021-04-25 18:08 ` Daniel Mendler [this message]
2021-04-25 22:31 ` Dmitry Gutov
2021-04-27 16:48 ` Juri Linkov
2021-04-27 17:39 ` Daniel Mendler
2021-04-27 18:11 ` Juri Linkov
2021-04-27 18:40 ` Daniel Mendler
2021-04-28 0:20 ` Dmitry Gutov
2021-04-28 19:59 ` Juri Linkov
2021-04-29 2:15 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e9bb418-9f1a-68ee-14de-e68f30f88b0a@daniel-mendler.de \
--to=mail@daniel-mendler.de \
--cc=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=juri@linkov.net \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).