From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Moving point after character when clicking latter half of it Date: Thu, 13 Jul 2023 11:47:36 +0300 Message-ID: <835y6o5hav.fsf@gnu.org> References: <2255158.iZASKD2KPV@silef> <21946289.EfDdHjke4D@anduin> <87mt02ar4e.fsf@yahoo.com> <3242369.aeNJFYEL58@anduin> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40480"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: Moritz Maxeiner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 13 10:48:17 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJrzk-000AI1-Mh for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Jul 2023 10:48:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJrz4-00038D-Rb; Thu, 13 Jul 2023 04:47:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJryw-0002xG-Bh for emacs-devel@gnu.org; Thu, 13 Jul 2023 04:47:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJrys-0007ar-1z; Thu, 13 Jul 2023 04:47:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XNXoh5Xbs8j+lb++RjOgpclzuCJD0Ky1FWuGLsXVD0c=; b=oqJld6RvM0Iq TyUn3Kw5lZWJPFi3rSysWgLodsTHn3GJ1QwPzLZMIhvDDIkgr9SqNi15npVSQnEm7F+q8lN8+pW/w hW+vvu2UGGPO5ZcKJRlcJXtmjxoRJPNQF6xhCsfpt6+e5X8JjWNRV1/rAq7vWzDxss/w8ZfpcRRrc S9NgtVo3lwz2kJ3PZ4qh4Jes7QNQt7Thx+l/7Ty2spO/1kVIjY3NqgYtvQOSR50CwwoJZn/m7VLNL qUKNxkqS2jbCqZlYrlDyAH6e8H2tCZhhHjCH34QoMJAMMn8eZ2+qJpjq/j+js37niP0lcmUw4r/jZ SBWqFPiqTjZXT0rje7ip1A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJryr-0006Yl-He; Thu, 13 Jul 2023 04:47:21 -0400 In-Reply-To: <3242369.aeNJFYEL58@anduin> (message from Moritz Maxeiner on Wed, 12 Jul 2023 21:58:44 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307811 Archived-At: > From: Moritz Maxeiner > Cc: emacs-devel@gnu.org > Date: Wed, 12 Jul 2023 21:58:44 +0200 > > +@defvar mouse-prefer-closest-glyph This is a user option, so please use @defopt, not @defvar. Also, please use some smaller (preferably, default) value for fill-column, as the text you posted uses too long lines. > +If you set this variable to non-@code{nil}, whenever you click or drag the mouse, > +instead of the point being always set in front of the clicked glyph, the point > +horizontally closest to the mouse position will be used. > +So if you click in the left half of a glyph, point is set in front of it, > +but if you click in the right half, point is set after it. There's too much of passive voice here. I think the alternative wording proposed by Po Lu is better. > ++++ > +** New user option 'mouse-prefer-closest-glyph'. > +When enabled, clicking or dragging with the mouse will put the point > +in front of the glyph with the closest x coordinate to the mouse pointer. ^^^^^^^^^^^^^^^^^^^^ "to the click or start of the drag" > +In other words, if the mouse pointer is in the right half of a glyph, > +point will be put after that glyph, while if the mouse pointer is in the > +left half of a glyph, point will be put in front of that glyph. Point is buffer position, whereas "glyph" is something on display. So this should say something like "point will be put after the buffer position corresponding to that glyph". Also, please state explicitly that the default of this feature is OFF. I understand that the details of the code are still under discussion, but I thought I'd post these comments anyway. Thanks.