help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Selection threshold with mouse


From: Stefan Monnier
Subject: Re: Selection threshold with mouse
Date: Sun, 20 Jul 2014 10:37:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> We don't currently have a method to find the character to the left of
> some screen coordinates (except some silly iteration that each time
> sheds 1 pixel from the coordinates).

Can't we:
- get the posn-at-x-y.
- find the left and right pixel boundaries of the object at that posn.
- call posn-at-x-y again on those boundaries (+1 or -1)?

Hmm... so maybe it can be done in Elisp after all.

> So it is not really easy to find the character that is to the left of
> the given screen coordinates in a way that will work with
> bidirectional display.

Indeed, bidi makes it more fun.

And as pointed out by Michael, you'd probably not want this to be
enabled all the time.  IOW it probably shouldn't be controlled just by
a global variable.  Instead, specific commands should control
it individually.


        Stefan


reply via email to

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