From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Selection threshold with mouse
Date: Sun, 20 Jul 2014 10:37:26 -0400 [thread overview]
Message-ID: <jwvy4voxfq8.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.5728.1405830249.1147.help-gnu-emacs@gnu.org
> 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
next prev parent reply other threads:[~2014-07-20 14:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-19 8:32 Selection threshold with mouse Tak Kunihiro
2014-07-19 17:31 ` Drew Adams
2014-07-19 23:52 ` Tak Kunihiro
2014-07-20 1:22 ` Stefan Monnier
2014-07-20 4:23 ` Eli Zaretskii
[not found] ` <mailman.5728.1405830249.1147.help-gnu-emacs@gnu.org>
2014-07-20 14:37 ` Stefan Monnier [this message]
2014-07-20 15:04 ` Eli Zaretskii
[not found] ` <mailman.5763.1405868682.1147.help-gnu-emacs@gnu.org>
2014-07-20 15:37 ` Stefan Monnier
2014-07-20 16:24 ` Eli Zaretskii
[not found] ` <mailman.5768.1405873481.1147.help-gnu-emacs@gnu.org>
2014-07-20 16:44 ` Stefan Monnier
2014-07-20 17:21 ` Eli Zaretskii
2014-07-21 14:20 ` Stefan Monnier
2014-07-21 15:31 ` Eli Zaretskii
2014-07-23 0:27 ` Tak Kunihiro
2014-07-25 8:41 ` Eli Zaretskii
2014-07-20 1:26 ` Michael Heerdegen
[not found] ` <mailman.5704.1405791121.1147.help-gnu-emacs@gnu.org>
2014-07-19 18:26 ` Barry Margolin
2014-07-19 18:47 ` Eli Zaretskii
[not found] ` <<837g395gp2.fsf@gnu.org>
2014-07-19 19:41 ` Drew Adams
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=jwvy4voxfq8.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/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.
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).