From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Selection threshold with mouse Date: Sun, 20 Jul 2014 10:37:26 -0400 Organization: A noiseless patient Spider Message-ID: References: <20140719.173203.1998048028110686770.tak.kunihiro@gmail.com> <20140720.085224.514514587.tak.kunihiro@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405867226 14073 80.91.229.3 (20 Jul 2014 14:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2014 14:40:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 20 16:40:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X8sHh-0005k0-Rz for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 16:40:17 +0200 Original-Received: from localhost ([::1]:57951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8sHh-0005M0-H8 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 10:40:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Injection-Info: mx05.eternal-september.org; posting-host="bd19462299dd32dcc7fc179ab8a1ae48"; logging-data="31384"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4MY7QnwEfTVpJ89qJ0b1q" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:seCIgKpegqaWTG0emvDm5OEy6V8= sha1:HiYJS5J+i903I7dwMHav451N+qU= Original-Xref: usenet.stanford.edu gnu.emacs.help:206548 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98820 Archived-At: > 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