emacs-devel
[Top][All Lists]
Advanced

[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 20:14:10 +0200

> Date: Sat, 12 Mar 2022 18:37:14 +0100
> From: Ergus <spacibba@aol.com>
> CC: juri@linkov.net
> 
> 
> 
> On March 12, 2022 6:29:57 PM GMT+01:00, Eli Zaretskii <eliz@gnu.org> wrote:
> >> From: Lars Ingebrigtsen <larsi@gnus.org>
> >> Cc: Juri Linkov <juri@linkov.net>,  Eli Zaretskii <eliz@gnu.org>,
> >>   emacs-devel@gnu.org
> >> Date: Sat, 12 Mar 2022 18:04:54 +0100
> >> 
> >> Ergus <spacibba@aol.com> writes:
> >> 
> >> > I added a highlight mode for completions in my branch using hooks and
> >> > overlays, but I am wondering since then: why we don't have a text
> >> > property that highlight the region when the cursor is over the region,
> >> > like the `mouse-face` but for the cursor (point)... Is it possible to
> >> > implement such thing more or less easily?
> >> 
> >> Hm, that does sound kind of attractive.  I don't know whether it'd be a
> >> lot of work to implement -- Eli?
> >
> >Isn't it very similar to the region?
> >
> 
> 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.



reply via email to

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