emacs-devel
[Top][All Lists]
Advanced

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

Re: Inline completion preview


From: João Távora
Subject: Re: Inline completion preview
Date: Wed, 1 Nov 2023 10:11:37 +0000

On Wed, Nov 1, 2023 at 8:30 AM Eshel Yaron <me@eshelyaron.com> wrote:

> > I can imagine that this behavior can be useful for certain personal
> > habits/used languages/etc, but it's a change from the default.
>
> I agree, although the user explicitly enables this minor mode, so it's
> entirely unexpected for it to change an otherwise default behavior, no?

Yes, this makes some sense, especially since as far as I understand it,
this minor mode is really about "changing the default behaviour of
C-M-i".

But OTOH there are other better ways to do that, i.e. via
completion-at-point-functions.   Are you sure your completion frontend
can't work via those?  The function you add to that variable could
just endeavour to check if there's any preview showing as an overlay,
and it if is insert it.  Then you would need no rebinding.

Also are you 100% sure Company doesn't do this?  I'm pretty sure
it does this when there is only one completion, at least.

João



reply via email to

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