[Top][All Lists]

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

Re: Select completions from the minibuffer

From: Eli Zaretskii
Subject: Re: Select completions from the minibuffer
Date: Sat, 12 Mar 2022 21:39:34 +0200

> Date: Sat, 12 Mar 2022 20:30:35 +0100
> From: Ergus <spacibba@aol.com>
> CC: emacs-devel@gnu.org, larsi@gnus.org, juri@linkov.net
> >> I don't think so... I think it is more similar to the mouse-face feature / 
> >> text property.
> >
> >Why do you think so?  The region is redrawn when the cursor moves, and
> >the cursor moves as result of Emacs commands, so how is this very
> >different from what you want?  By contrast, the mouse highlight is
> >triggered by mouse movements that are completely independent of Emacs
> >commands, and the implementation, as part of the display engine, is
> >therefore quite complicated.  Whereas the region display is nowadays
> >implemented completely in Lisp.
> Ok, then it will be similar to the code I already have in 
> completions-highlight-mode. Essentially add/move an overlay on post command 
> hook based on some conditions.

Actually, I think it should be like the implementation of the region
highlight, which uses other hooks.  See simple.el.

reply via email to

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