From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Selection threshold with mouse Date: Sun, 20 Jul 2014 07:23:48 +0300 Message-ID: <8361is64kr.fsf@gnu.org> References: <20140719.173203.1998048028110686770.tak.kunihiro@gmail.com> <20140720.085224.514514587.tak.kunihiro@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1405830267 27493 80.91.229.3 (20 Jul 2014 04:24:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2014 04:24:27 +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 06:24:20 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 1X8ifb-00053K-5x for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 06:24:19 +0200 Original-Received: from localhost ([::1]:56357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8ifa-0000eR-MV for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Jul 2014 00:24:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8ifJ-0000bF-SK for help-gnu-emacs@gnu.org; Sun, 20 Jul 2014 00:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8ifD-00032H-VS for help-gnu-emacs@gnu.org; Sun, 20 Jul 2014 00:24:01 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:44279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8ifD-000321-OO for help-gnu-emacs@gnu.org; Sun, 20 Jul 2014 00:23:55 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N8Z00J00T1RNH00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sun, 20 Jul 2014 07:23:53 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N8Z00JRITJTOA10@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sun, 20 Jul 2014 07:23:53 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:98810 Archived-At: > From: Stefan Monnier > Date: Sat, 19 Jul 2014 21:22:28 -0400 > > > Is it possible to change the sweet spot? > > Of course, it's possible, but Emacs currently does not provide > this option. You'd have to change some of the C code for that. > Patches welcome. 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). 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. We could perhaps _approximate_ that by subtracting some fixed fraction of the width of the character to the right of the mouse, but that might mean some strange effects when the characters on the two sides of the mouse pointer differ in size. Maybe that's acceptable. If not, changing the current code that determines buffer position from mouse coordinates would need a complete redesign (in a way I cannot yet imagine) to support the required feature. And yes, patches welcome.