From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD_?= =?UTF-8?Q?=D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0=BE=D0=B2?= Newsgroups: gmane.emacs.bugs Subject: bug#66664: On modified lines containing =?UTF-8?Q?=F0=9F=8C=90=EF=B8=8E?= and Unicode VS15 in text mode emacs does not show the real content of the lines Date: Sun, 05 Nov 2023 12:55:53 +0100 Message-ID: <8872328a7ec3b230013dcd74fb214cfbbf87d209.camel@aegee.org> References: <2ae9c4a6f49438103a21ff4144e2e11bdf2f7b2e.camel@aegee.org> <83pm18qh5w.fsf@gnu.org> <7e1f9e947a191eca18429cd20e5e71a4dcd34f2f.camel@aegee.org> <83jzrgqeqh.fsf@gnu.org> <83il70qdyi.fsf@gnu.org> <83fs24q912.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="32466"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.51.1 Cc: 66664@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 05 12:56:55 2023 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 1qzbkM-0008Gw-OI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Nov 2023 12:56:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzbjw-0001mI-M9; Sun, 05 Nov 2023 06:56:28 -0500 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 1qzbju-0001lh-Gw for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 06:56:26 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzbju-0003k9-8A for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 06:56:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzbkU-0003sG-Ge for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 06:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD_?= =?UTF-8?Q?=D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0=BE=D0=B2?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Nov 2023 11:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66664 X-GNU-PR-Package: emacs Original-Received: via spool by 66664-submit@debbugs.gnu.org id=B66664.169918539614842 (code B ref 66664); Sun, 05 Nov 2023 11:57:02 +0000 Original-Received: (at 66664) by debbugs.gnu.org; 5 Nov 2023 11:56:36 +0000 Original-Received: from localhost ([127.0.0.1]:36242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzbk3-0003rJ-Hf for submit@debbugs.gnu.org; Sun, 05 Nov 2023 06:56:35 -0500 Original-Received: from mail.aegee.org ([144.76.142.78]:42010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzbk0-0003r8-Mv for 66664@debbugs.gnu.org; Sun, 05 Nov 2023 06:56:34 -0500 Authentication-Results: mail.aegee.org/3A5BtrLX2151925; auth=pass (LOGIN) smtp.auth=didopalauzov@aegee.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aegee.org; s=k4096; t=1699185353; i=dkim+MSA-ssl@aegee.org; bh=VO1IdOFrv0E3YU5HIwG79cYryBbEHKLNZaEYQyH0uOo=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=kmfwM6FH/EkWxK2FZdxawUuQfref8qCgxC2Y+ZfuPAjxOVlus2TIhonBzab1igYkP 4kZ084D6Z0YYHyK2/qHCbrvYYnniJ1rBrqTi/ovbDXHcCy7xzJWfOlxR1bPp9ViQG1 dDV+/is4KHe909vTkhL1lJWvN5DJNajR3IZgl8UnXbCWF+1rPpUdxa0XE9SGt2RMTq pZwesVZtLbBVKDSD+g54NKFizKOLxcfhoAOM+eO11C1FKs0BFPIPDcnUj5n0ltL7JW HGegcd2VI9qbMCTDeyymMd+6yKD93UdW86PQoj102+eMc85hsiJZAPHT8eRQ6XZEKL xZC0gnpzbzwPs/wILViDxQ3uVJvUVI3TlymFY/En2NWIn/Z4We/F2RU394Y7cHLj/Q TEkIuih2PAsXy2Ob2b03+llkPKMEhDV6ENaqxexNsk57q5bBlJg26Q75CYw6f45TM6 F0wN9ylY6J+u9f7Fkaa0BWdQkQk0ew0PLWGvOmmrjgMwl3QmvTFxm22hbYLt+dNMmu hKcBob16oqVZmM87otrtdguzLnG19GDBq/yPQMq2dOjt8bt+IB3elLYAgrys8b68NF yWIXlqNVzwNgrnrP6xTYIM9KhQqYx0UgHjkV/Mf1DLjAbXdYSZH2AqxGcAje3E/zS5 e Authentication-Results: mail.aegee.org/3A5BtrLX2151925; dkim=none Original-Received: from [10.57.6.126] ([192.19.207.250]) (authenticated bits=0) by mail.aegee.org (8.17.2/8.17.2) with ESMTPSA id 3A5BtrLX2151925 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 5 Nov 2023 11:55:53 GMT In-Reply-To: <83fs24q912.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273819 Archived-At: Hello Eli, thanks for your answer. I start emacs -nw then M-: shows Eval: I enter= =20 (set-char-table-range char-width-table '(#x1f310 . #x1f310) 1) RET then the mini-buffer shows 1 (#o1, #x1, ?\C-a) I open then the problematic file, go to the problematic line, then to its e= nd (Ctrl+E). Emacs should show the cursor after the last letter on the lin= e, but it does show the cursor over the last letter of the line. > Why are you using a text-mode terminal to edit files with these character= s? Why not use a GUI session instead? I used connect over SSH to some systems, then start emacs and finally chang= e the files there. I see I can first start Emacs-GUI and then =E2=80=9Cfi= nd a file=E2=80=9D starting with /ssh:, which open locally ssh-remote files= . So this is a valid work around. Greetings =D0=94=D0=B8=D0=BB=D1=8F=D0=BD -----Original Message----- From: Eli Zaretskii To: =D0=94=D0=B8=D0=BB=D1=8F=D0=BD =D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0= =BE=D0=B2 Cc: 66664@debbugs.gnu.org Subject: Re: bug#66664: On modified lines containing =F0=9F=8C=90=EF=B8=8E = and Unicode VS15 in text mode emacs does not show the real content of the l= ines Date: 10/21/2023 05:39:53 PM [Please use Reply All, to keep the bug tracker on the CC list.] > From: =D0=94=D0=B8=D0=BB=D1=8F=D0=BD =D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7= =D0=BE=D0=B2 > > Date: Sat, 21 Oct 2023 17:25:11 +0200 >=20 > when I load the file the globe appears below =E2=80=9Cit=E2=80=9D from = =E2=80=9Cfile edIT options=E2=80=9D menu.=C2=A0 So at least visually I see = two columns. >=20 > Now that you can reproduce the problem, what shall I do? Try =C2=A0 M-: (set-char-table-range char-width-table '(#x1f310 . #x1f310) 1) R= ET But in general, I don't think this problem has a solution, except to use GUI frames.=C2=A0 Text-mode terminals don't give a damn, to put it mildly, about Emacs expectations and needs, when display of such advanced character sequences is concerned.=C2=A0 They invent their own implementations and de-facto standards, completely disregarding the fact that Emacs was there and did that many years before them.=C2=A0 When approached, they basically tell us "our way or the highway".=C2=A0 "Their way" isn't going to happen in Emacs, for several good reasons, so here we are. Why are you using a text-mode terminal to edit files with these characters?=C2=A0 Why not use a GUI session instead?