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: Sat, 27 Mar 2021 17:53:41 +0000 Message-ID: <59595EE8-9594-4A4B-B8F6-DC0A5967C3C7@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> 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="23058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Eli Zaretskii , 47360@debbugs.gnu.org To: Julian Rohrhuber Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 27 18:54:12 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 1lQD8V-0005rn-C7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 18:54:11 +0100 Original-Received: from localhost ([::1]:51324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQD8U-0003X7-E7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 13:54:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQD8M-0003Wz-13 for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 13:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQD8L-0006wO-PR for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 13:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQD8L-0002a4-Nw for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 13:54: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: Sat, 27 Mar 2021 17:54: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.16168676409911 (code B ref 47360); Sat, 27 Mar 2021 17:54:01 +0000 Original-Received: (at 47360) by debbugs.gnu.org; 27 Mar 2021 17:54:00 +0000 Original-Received: from localhost ([127.0.0.1]:44891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQD8K-0002Zm-6c for submit@debbugs.gnu.org; Sat, 27 Mar 2021 13:54:00 -0400 Original-Received: from mail1.protonmail.ch ([185.70.40.18]:61051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQD8I-0002ZY-LB for 47360@debbugs.gnu.org; Sat, 27 Mar 2021 13:53:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1616867631; bh=wclqPFeITRP5X2KfYQXDkoYO/ILmxWj0isLDqgagugQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=VyHEF7QExa8jVxQcHiZJ5WQ9UyEkaCT6eE/iRbQzZoAXodBalK1iHHvg9cZXGxxt4 nfBqnOiUMS/Cz/zRASUDldXLGHIM3BrNBKOkLny8tVSeYJ3UmJl9KDZm1s/qLZuu53 K4le0NbSoAN8aUAVhRdJxEzcmJ+5fUavm7ukrDsA= In-Reply-To: <263840E3-182B-4E13-91FD-091D78139FFC@protonmail.com> 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:203131 Archived-At: > On 24. Mar 2021, at 20:08, Julian Rohrhuber wr= ote: > >> On 24. Mar 2021, at 19:39, Lars Ingebrigtsen wrote: >> >> >> Julian Rohrhuber writes: >> >>> But when in bar mode, it should jump to the right when the click is >>> right of the middle of the character, and only left when to its left >>> of the middle. >>> >>> Instead, it also jumps to the left. >> >> The cursor shape is purely cosmetic at present, I think. Your >> suggestion to add semantics to the bar shape makes some intuitive sense, >> but I'm afraid that might leave us open to user interface >> inconsistencies unless considered carefully. > > yes, I definitely see your point here. The concept of a bar is indeed mor= e than cosmetic, even if perhaps the differences are easily taken into acco= unt. > > For those who use other editors are habituated very deeply to a specific = behaviour of the bar, and anything that deviates from this feels subtly but= clearly broken. > > >> Are there other instances we might want to do something based on the >> cursor shape other than setting point with the mouse, I wonder? Would >> "marking an area to the left" (i.e., clicking on a character and then >> dragging to the left) be handled differently? In that case, dragging >> starting with the mouse at any point right of the bar cursor should >> perhaps include the character under point, and not just at the half-way >> point? > > I've checked with some editors, e.g atom (using huge font is easiest), th= e selection works just like the jump (so it is a selection of zero length).= When you click to the right of the middle of a character and then drag to = the left, the character will be included. If you drag to the right it will = not be included. There is one more case where one can feel the difference: when selecting wi= th the mouse and dragging to the right, the selection jumps to each charact= er a little "too late", that is, after you have already crossed the positio= n you want the selection to end at. You have to point to a character *after= * the one you want to include. The current selection always is up to one ch= aracter behind the cursor barline. This results in a "sticky" feeling.