From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Moritz Maxeiner Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Moving point after character when clicking latter half of it Date: Sun, 09 Jul 2023 17:33:25 +0200 Message-ID: <4837402.GXAFRqVoOG@anduin> References: <2255158.iZASKD2KPV@silef> <87jzv9mf5s.fsf@turtle-trading.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38251"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 09 17:34:35 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 1qIWQl-0009kV-8g for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jul 2023 17:34:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIWPj-0002dB-IN; Sun, 09 Jul 2023 11:33:31 -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 1qIWPh-0002cj-Lr for emacs-devel@gnu.org; Sun, 09 Jul 2023 11:33:29 -0400 Original-Received: from nephos.ucw.sh ([138.201.61.214] helo=mail.ucw.sh) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIWPg-0000hH-2b for emacs-devel@gnu.org; Sun, 09 Jul 2023 11:33:29 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.ucw.sh (Postfix) with ESMTP id 0DC8C971C4; Sun, 9 Jul 2023 17:33:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.ucw.sh Original-Received: from mail.ucw.sh ([127.0.0.1]) by localhost (mail.ucw.sh [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id GCfIlxgFCPsL; Sun, 9 Jul 2023 17:33:25 +0200 (CEST) Original-Received: from anduin.localnet (p200300d29747ecc2b2d2af557f4757a8.dip0.t-ipconnect.de [IPv6:2003:d2:9747:ecc2:b2d2:af55:7f47:57a8]) (Authenticated sender: mm@ucw.sh) by mail.ucw.sh (Postfix) with ESMTPSA; Sun, 9 Jul 2023 17:33:25 +0200 (CEST) In-Reply-To: Received-SPF: pass client-ip=138.201.61.214; envelope-from=mm@ucw.sh; helo=mail.ucw.sh X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:307688 Archived-At: On Sunday 9 July 2023 17:15:02 CEST you wrote: > > > In all of the ones I'm using (other than emacs), clicking with the mouse > > > on a character moves the point either in front of, or after that > > > > character, > > > > > depending on whether you clicked the left or right half of it. > > > > Interesting, I never tested that before. It explains why I am so often > > missing the first character when I try to copy text with the mouse. IOW > > I personally find this an anti-feature. > > I understand that the feature would be optional. > Still, I tend to agree with you (Benjamin). > > I can imagine editing text with a very large font > (I use larger fonts as time goes by...), and in > that case I'd see better which half of a char I > was clicking. IOW, that would allow me to take > advantage of such half-char clicking. > > Nevertheless, I don't really see what the feature > adds. You can already precisely click here or > there to place point or select whichever starting > (with (mouse-1) or ending (with mouse-3) char you > like. It allows people to not have to shift mental models when interacting with GUI Emacs vs. other GUI applications deadling with text. > > It seems like all this would do is to halve the > distance between such click positions - in essence > _requiring_ even better visibility/sensing of the > positions. Clicking the latter half of glyph n, as well as the first half of glyph n+1 would result in the point being but between glyph n and n+1. The total length of the selection range remains the same, it is only shifted half a glyph to the left. I ask that you try my poc patch out before making such strong claims. > And thus requiring even a closer zoom > of the text. IOW, instead of having to feel/find > the start or end of a char you'd have to do that > for the start, the end, and the middle. > > Sounds like multiplying things unnecessarily, > making poor Occam roll over in the grave. What, > exactly, is the improvement or use case? Could > someone please describe a scenario where this > would actually help someone more? The use case is described in my very first post, but I'll go into more detail: Every other GUI application dealing with text I'm using already works this way, including e.g. KMail (which I'm typing this email in). When using emacs, I have to switch my mental model from "normal GUI application" to "Emacs GUI" and still often misclick due to Emacs' behaving differently from other GUI applications. That being said, if there's wide opposition of this being included in Emacs, I'll maintain it as a downstream patch as Emacs' current default behavior, to me, is unacceptable.