From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandre Garreau Newsgroups: gmane.emacs.devel Subject: Re: Highlighting cursor for char before Date: Wed, 27 Oct 2021 20:49:47 +0200 Message-ID: <3758334.UuyoW76GZr@galex-713.eu> References: <1844951.jBraE47yQ0@galex-713.eu> <2960319.aSkrYHcR6s@galex-713.eu> <8335omwjao.fsf@gnu.org> 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="12016"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 27 21:30:24 2021 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 1mfocy-000308-1l for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Oct 2021 21:30:24 +0200 Original-Received: from localhost ([::1]:33852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfocw-0007Nw-Dw for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Oct 2021 15:30:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfnzj-0008M3-V0 for emacs-devel@gnu.org; Wed, 27 Oct 2021 14:49:52 -0400 Original-Received: from portable.galex-713.eu ([2a00:5884:8305::1]:52570 helo=galex-713.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfnzi-00013m-Bi; Wed, 27 Oct 2021 14:49:51 -0400 Original-Received: from gal by galex-713.eu with local (Exim 4.92) (envelope-from ) id 1mfnzf-00072n-LJ; Wed, 27 Oct 2021 20:49:47 +0200 In-Reply-To: <8335omwjao.fsf@gnu.org> Received-SPF: pass client-ip=2a00:5884:8305::1; envelope-from=galex-713@galex-713.eu; helo=galex-713.eu 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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:278042 Archived-At: Le mercredi 27 octobre 2021 17:59:11 CEST, vous avez =C3=A9crit : > About what? You ask so many questions, and OTOH say so little apart > of the questions, that I no longer understand what you are talking > about. Oh noes :( Ok, let=E2=80=99s start again more simply: what is that block underlining? = what=E2=80=99s=20 its meaning? To me, in LTR, currently with the current behavior, in both insert and=20 ovrwt mode, that block is underlining =E2=80=9Cthe place where will appear = the=20 character I type=E2=80=9D (first assertion), and that=E2=80=99s its meaning= =2E It also=20 underlines the character that will be deleted if I press Suppr or C-d=20 (second assertion), but since most of the time I use DEL, that=E2=80=99s=20 irrelevant, because the character that would be deleted if I press DEL is=20 not the one underlined. In RTL, currently, the second assertion holds, but the first doesn=E2=80=99= t=E2=80=A6=20 unless I=E2=80=99m in overwrt mode=E2=80=A6 but nobody use that anymore rig= ht? I only do=20 while in artist-mode=E2=80=A6 To me, block-cursor is most useful in overwrt mode, and since both most=20 likely emerged at the same time, that=E2=80=99s a congruence that=E2=80=99s= no longer=20 useful, and that now can bring confusion (because of the assertion I=20 proposed as a semantic for that kind of cursor). > > Ok that was precisely what I wanted to know (especially as I totally > > trust your opinion for that matter, as a beginning (is that treated > > in xdisp.c as well?)), except given the misunderstandment above I=E2=80= =99m > > unsure you correctly understood what I meant=E2=80=A6 I meant the preci= se > > opposite of what the block cursor currently does=E2=80=A6 is that so co= mplex? >=20 > It is complex, yes. That's what I tried to explain. Isn=E2=80=99t it just a matter of taking the current behavior and reversing= the=20 way the block is drawed compared to the cursor position (the position=20 between two chars that we would see if the cursor was just a line)? and still: is that in xdisp.c? > And I don't think it makes sense to display the cursor on the > character before point, because it will be terrible in bidirectional > context. Why so? > Are there any other editors that show the cursor that way? I=E2=80=99m pretty sure there aren=E2=80=99t. I never saw a such thing. B= ut I find it=20 more logical. > But if someone wants such a feature as an option, why not? I would! I like when things I use have a meaning, more than when they have= =20 a history (and I see a historical explanation in the current behavior, but= =20 no semantical one).