From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Julian Rohrhuber via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47360: 27.1; using 'bar cursor, mouseclick is rounded to the wrong char position Date: Sun, 28 Mar 2021 07:15:38 +0000 Message-ID: <5DD13ED2-79CA-4D3C-B9C9-6A80C5F046B1@protonmail.com> References: <552AAC5C-46DD-418C-958E-949E33D4A697@protonmail.com> <83pmzojwgg.fsf@gnu.org> <87mtus9z1a.fsf@gnus.org> <263840E3-182B-4E13-91FD-091D78139FFC@protonmail.com> <59595EE8-9594-4A4B-B8F6-DC0A5967C3C7@protonmail.com> <83k0psnztu.fsf@gnu.org> Reply-To: Julian Rohrhuber Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21280"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 47360@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 28 09:16:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lQPec-0005SH-BI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 09:16:10 +0200 Original-Received: from localhost ([::1]:55114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQPeb-0003EG-D6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 03:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQPeU-0003C1-B0 for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 03:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQPeU-0004m8-3T for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 03:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQPeT-00088w-UP for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 03:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Julian Rohrhuber Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Mar 2021 07:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47360 X-GNU-PR-Package: emacs Original-Received: via spool by 47360-submit@debbugs.gnu.org id=B47360.161691575631288 (code B ref 47360); Sun, 28 Mar 2021 07:16:01 +0000 Original-Received: (at 47360) by debbugs.gnu.org; 28 Mar 2021 07:15:56 +0000 Original-Received: from localhost ([127.0.0.1]:45344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQPeN-00088a-LQ for submit@debbugs.gnu.org; Sun, 28 Mar 2021 03:15:55 -0400 Original-Received: from mail-40136.protonmail.ch ([185.70.40.136]:56427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQPeL-00088M-G2 for 47360@debbugs.gnu.org; Sun, 28 Mar 2021 03:15:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1616915747; bh=MmDzd6ucPxEbfwJIQJ4T+cs6nnipwpBqovpk1NB6ZTg=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=L+v/nUACqVElwKL8DIyHhzukXxGecAl01SzjjcRk8fAyb6LBwKfVWhut14wVbfZFS m76HC6ZkAS63dylAsoRqcfVGyD9h4MJol2VJxW18RTPyBIwpAN2JHO46vdC2/++SKX 2FJsp0QhAzGe3OqcgsRFi29EdiCRxZHcYooe3QbY= In-Reply-To: <83k0psnztu.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" X-ACL-Warn: , Julian Rohrhuber Xref: news.gmane.io gmane.emacs.bugs:203148 Archived-At: > On 27. Mar 2021, at 20:47, Eli Zaretskii wrote: > > >> Date: Sat, 27 Mar 2021 17:53:41 +0000 >> From: Julian Rohrhuber >> Cc: Lars Ingebrigtsen , Eli Zaretskii , 47= 360@debbugs.gnu.org >> >> There is one more case where one can feel the difference: when selecting= with the mouse and dragging to the right, the selection jumps to each char= acter a little "too late", that is, after you have already crossed the posi= tion you want the selection to end at. You have to point to a character *af= ter* the one you want to include. The current selection always is up to one= character behind the cursor barline. This results in a "sticky" feeling. > > Yes, selection in Emacs works on per-character granularity, because it > uses the faces infrastructure. We'd need to do something very > different to make that use pixel granularity. Patches are welcome. I don't think that a change of granularity would be necessarily at all to i= mprove what I describe. All what would have to be done is to change at what= *cursor* position the selection jumps to the next character (namely when i= t crosses its middle). So it would only another application of the solution= to the current issue.