Received: (at 76852-done) by debbugs.gnu.org; 29 Mar 2025 11:20:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 29 07:20:07 2025 Received: from localhost ([127.0.0.1]:57225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tyUEQ-00028u-Ic for submit <at> debbugs.gnu.org; Sat, 29 Mar 2025 07:20:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51910) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tyUEO-00026C-1I for 76852-done <at> debbugs.gnu.org; Sat, 29 Mar 2025 07:20:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tyUEI-00047T-NA; Sat, 29 Mar 2025 07:19:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=k7w5NYzzAWSv9bmOQnlJk5aYxHl7gW5wXxhDK9a1SBY=; b=rfsxgjRaZJIu2fXGzP4J XS+fExHdWVNZ8du179mjXqzgPzjftdPA1S0vb2V3r83SSciJItIKB1UYkPrSnqrEWlj7chhBNge7s P1eF64DNnE0zXPnv3dDaAPpDwftyMCs5cHsuHHZEBCo9Sbkeu2382Vhy93wsBh5PPaNGdeyz3TsL0 KWp17bfl3ac+0NyAiTlfpJ2tEyiR6NYKu2jXNWO/P8YBJT621Mzk4RJh9PCV6QmbPMMGt+Xz8jvLP BPbUVBjW/ly8ql5UUfButc1LHHxhECujn9+ug+W8xFGkKAyjB1kltsFdWbD/ZtuaOjZOkIVY8m2kl oL546ig8T51GQA==; Date: Sat, 29 Mar 2025 14:19:54 +0300 Message-Id: <86zfh46q3p.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: dreaming.in.code.zh@HIDDEN In-Reply-To: <86y0x6wm94.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 15 Mar 2025 13:45:27 +0200) Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> <86o6y65nzb.fsf@HIDDEN> <CAFwAk1pAbK=Z06f6xACWMLU3w=Vh25FpG9PNaZ0L1w87pryZmg@HIDDEN> <86a59p4c2o.fsf@HIDDEN> <CAFwAk1r_RpqS+Sueh5HLRKeWN3aTAumrJxPeUp8=HHwnRU7_og@HIDDEN> <86ecz12f6w.fsf@HIDDEN> <86y0x6wm94.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76852-done Cc: 76852-done <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 76852 <at> debbugs.gnu.org > Date: Sat, 15 Mar 2025 13:45:27 +0200 > From: Eli Zaretskii <eliz@HIDDEN> > > > Cc: 76852 <at> debbugs.gnu.org > > Date: Thu, 13 Mar 2025 16:11:35 +0200 > > From: Eli Zaretskii <eliz@HIDDEN> > > > > > From: 张海 <dreaming.in.code.zh@HIDDEN> > > > Date: Thu, 13 Mar 2025 02:32:33 -0700 > > > Cc: 76852 <at> debbugs.gnu.org > > > > > > > Currently, the two solution I'm pondering are: > > > > > > > > . remove from the list of ambiguous-width characters some of the > > > > characters with low Unicode codepoints, including the 2 characters > > > > used by whitespace-mode, on the assumption that these characters > > > > are unlikely to be full-width in fonts used by Emacs users in CJK > > > > locales > > > > > > I wonder how emacs 29.4 dealt with this - did it also have a special > > > list of characters that it treats as half-width, while the rest are > > > treated as full-width like what was in the announcement? > > > > Emacs 29 didn't have the notion of ambiguous-width characters. Each > > character was either a half-width or a full-width. And the characters > > used by whitespace-mode were half-width. > > > > > > . change the default of cjk-ambiguous-chars-are-wide to nil, on > > > > the assumption that most users in CJK locales use fonts where > > > > these characters have half-width glyphs > > > > > > I think this might be a good option because both TTY and some popular > > > terminal emulators like gnome-terminal, gnome-console and foot ship > > > with the ambiguous CJK characters defaulted to half width. > > > > Yes, but are we sure that users in CJK locales don't customize > > terminal emulators to default the ambiguous-width characters to > > full-width? If many users do that, then Emacs should cater to the > > majority. > > > > > > Thanks. Let me think a bit more about what would be the best > > > > solution. But could you tell which font you used that has full-width > > > > glyphs for these characters? Is it unusual to use that font for > > > > terminal emulators in CJK locales? > > > > > > The fonts I'm using, and most Chinese Linux users may be using (to my > > > understanding), are: > > > - WenQuanYi (WQY) fonts > > > - Noto (i.e. Source Han, a different branding) fonts > > > See also https://wiki.archlinux.org/title/Localization/Chinese > > > > > > The WenQuanYi fonts have a much longer history and the middle dot is > > > always half width in them (checked just now). I'm currently using > > > WenQuanYi Micro Hei. > > > > > > The Noto/Source Han fonts are relatively new and have an interesting > > > situation where the Noto Sans CJK SC/TC have the middle dot as full > > > width but Noto Sans CJK JP/KR have it as half width. > > > > > > Some Microsoft proprietary system-default fonts for Chinese > > > characters, e.g. SimSun and SimHei, also have the middle dot as full > > > width, but I guess few Linux users would be using it. > > > > > > I should also mention that some CJK users prepend an English font > > > before their CJK font for usage in UI/terminal, because English fonts > > > usually contain better quality glyphs for latin letters than the ones > > > embedded in CJK fonts - essentially they only use the CJK-only part of > > > the CJK fonts. So the middle dot will always be half width for them. > > > > > > > I'm wondering why we didn't hear > > > > by now complaints from CJK users about the effects of > > > > cjk-ambiguous-chars-are-wide other than on whitespace-mode. Maybe the > > > > other ambiguous-width characters are seldom used in practice? Or > > > > maybe too little time has passed since Emacs 30 was released? > > > > > > I think it could be both: > > > > > > 1. Emacs 30 is still new-ish, e.g. it landed in Arch Linux stable on > > > Feb 25, only two weeks ago > > > > > > 2. Not a lot of CJK users set a CJK locale ($LANG) for their terminal > > > - they usually set it for the DE but not necessarily in > > > /etc/locale.conf for the entire environment, because that means > > > localized messages won't appear properly under TTY with its default > > > font. I did that because I would manually set LANG if I actually have > > > to use TTY instead of a terminal emulator some day. > > > > Thanks for the info, I will think about this some more. > > I eventually decided to go with the more conservative approach of > removing the two characters used by whitespace-mode from the list of > ambiguous-width characters. > > This change is not installed on the emacs-30 branch, so the next Emacs > release should have this problem fixed. The above should have said "This change is now installed on the emacs-30 branch". No further comments, so I presume the fix is okay, and I'm closing this bug.
张海 <dreaming.in.code.zh@HIDDEN>
:Eli Zaretskii <eliz@HIDDEN>
:Received: (at 76852) by debbugs.gnu.org; 15 Mar 2025 20:17:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 16:17:39 2025 Received: from localhost ([127.0.0.1]:43699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ttXwx-0000cV-3r for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 16:17:39 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:48582) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <dreaming.in.code.zh@HIDDEN>) id 1ttXwt-0000bn-V3 for 76852 <at> debbugs.gnu.org; Sat, 15 Mar 2025 16:17:36 -0400 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5e5e34f4e89so5717760a12.1 for <76852 <at> debbugs.gnu.org>; Sat, 15 Mar 2025 13:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742069850; x=1742674650; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3BMmXxGSGZkomBEjDDfd1yQwEZRNLahgAdeBiJRPUBY=; b=YnsSyL/WopUBH4G7ET93vOPF3Xs3xHvIoItxI2QnWOR+d+tpQbG6IhVOep541+t/XB t5PBypSUQ3Lx6wye8whYkX/cKrJaa19YIApQ4c5xU77nMYk+aI5em7Phy1oew1jfAWro dzSJ1504CGFKZarfow3eAq4t0tKOaNdkwu5dgjAHkRniPPBdLxCiM4iSunmdI4WaTRN/ ksJyx2cwLeybB3KwjGyygz8v5nsGKZzcRPAnlM7FNMRUDAffVSzdAdA9iRRY71s+KEyJ 7n9xcgVr9ruWJN6aIeYEgWxLTBm5SQ6vQU53OwMJdZtyIoZgaoPyO64pYqkQbONb3+L2 /Lgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742069850; x=1742674650; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3BMmXxGSGZkomBEjDDfd1yQwEZRNLahgAdeBiJRPUBY=; b=UbaiOabasu4nFBVSI5Uwo7iu0BNsG9MOsCZ4X0osj5Y9CatQWSVxgmcxlcgGnJK5CJ 1R+ANg1qO7T4vDGM2XpIB6HgSK8ToKrDAeizKMV7FA7EJ0jmbG8naQXdzG32k8gWQtYW EhzCTGpt7r0UDCTvEZa1EcfXRWnnLQqoBsY3815eBlLBRVCpMsGh0xJltYTExr7k1st4 3Gj5Z9yNuqIUobCyMBzbwUsQdNTnpooqSu7Li/5UDZiRkaWnyeoPteZIUubjavqbSciL 2tYbLhqjETsoNOAgt6h9hsVTJxUAbJJHNkbBkrAcZZtacXPlYJ6lblnG8O+jz+1h14wA tCaw== X-Gm-Message-State: AOJu0YwLOCrKUAtm/b5rLTCfOSUrwvl5MmHmAMC6XEHnv/zt2KXvIUBB 5soyZDSu1linTMB+o5kxK1+4cWNYdZZtba5/eYnZLAExiXzgPh/1B8PIR45fQKSPtT2+niWJfM2 aNSDco9Q/HSPCjlJ2HDXYHM5Kfn20CPxJ X-Gm-Gg: ASbGncuror5yF5zqG1illTN2Rw/01rm8Wz+MWg6CD2bJ/6QC2q6Aw2HbkeoxPF3TvVg g3fu1eS32av8GdIutnQxkRABduy0x/iUIAhAFKfWppJ0SseSb+r2CRvADOJb81mqAk93H3JOTTN QaOfBDYtAyFp/pzjhP2GML0PtffM8yanMdB5VeMvw= X-Google-Smtp-Source: AGHT+IG0RNha+kH2nilFm+W0IXwXhN9kjdpQkHtAsvj1zURl0nZeIAEhnCiyFCGMtAUzbxkPpIRzmsQjZbKrxfRY3Z8= X-Received: by 2002:a50:99d1:0:b0:5e6:de5:312f with SMTP id 4fb4d7f45d1cf-5e8a0c14582mr5751954a12.23.1742069849584; Sat, 15 Mar 2025 13:17:29 -0700 (PDT) MIME-Version: 1.0 References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> <86o6y65nzb.fsf@HIDDEN> <CAFwAk1pAbK=Z06f6xACWMLU3w=Vh25FpG9PNaZ0L1w87pryZmg@HIDDEN> <86a59p4c2o.fsf@HIDDEN> <CAFwAk1r_RpqS+Sueh5HLRKeWN3aTAumrJxPeUp8=HHwnRU7_og@HIDDEN> <86ecz12f6w.fsf@HIDDEN> <86y0x6wm94.fsf@HIDDEN> In-Reply-To: <86y0x6wm94.fsf@HIDDEN> From: =?UTF-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> Date: Sat, 15 Mar 2025 13:17:21 -0700 X-Gm-Features: AQ5f1JqU_Dlvzfyg0dOg7M7g6ItmDLbuJ4dSv_c4n9ISFjtA5yzmxaw_TL8Fip0 Message-ID: <CAFwAk1qa2weVW-h+PkTbV0zNRydGk6Ph5Cw2bCw5cy8w-TwXbw@HIDDEN> Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal To: Eli Zaretskii <eliz@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Thanks for fixing this for whitespace-mode! In case anyone has a similar problem and finds this thread. as an opinionated user I feel it would make the most sense for me to always have a consistent ambiguous CJK character setting between my terminal and Emacs, so that the text layout for Emacs under terminal never breaks for any of those characters. I've added the following to my .emacs now (as all my terminals has defaulted to half width for years): ;;; half width CJK ambiguous characters (same as most terminal ;;; defaults) (setopt cjk-ambiguous-chars-are-wide nil)
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 15 Mar 2025 11:45:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 07:45:41 2025 Received: from localhost ([127.0.0.1]:39280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ttPxU-000761-IB for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 07:45:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38762) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ttPxQ-00075h-Dm for 76852 <at> debbugs.gnu.org; Sat, 15 Mar 2025 07:45:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ttPxK-0002lP-Ud; Sat, 15 Mar 2025 07:45:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=LoGU+Q9QMQwXvLGolHAxVle7YHwxSxS3aPjNYSisfnA=; b=BdpydGt1RwBv4+SiSktf mi7YdHflOOlf+UTbNCmCTRXqYcpbgy66stFWk/3XmtWmzxN3AKP48YgHRCC7qIGStKmc5Rd8/oVwx 5r/uCOMPsLoexpZvzPBWM5pVQodg+XwA2Fnf2u8i5Rrg23ADSwaParJNpAf9XT/VR5YfE8KH75AYD tnKQQDFAgsiHLp2ZMd4Vmf6r/9iNn99VTc4t+6BV0NxYoRw9RJHfQP8t1+DTiSYIiP97cNCu5XZH+ 2viTsb5QalNI4Iy2bFG8MVWHegQjdFxg2prPsxzV7+8ZPNcktzFiQjrEUamCjwUVhlYrXBZGLAoJ+ JBqKfhGugxUeUQ==; Date: Sat, 15 Mar 2025 13:45:27 +0200 Message-Id: <86y0x6wm94.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: dreaming.in.code.zh@HIDDEN In-Reply-To: <86ecz12f6w.fsf@HIDDEN> (message from Eli Zaretskii on Thu, 13 Mar 2025 16:11:35 +0200) Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> <86o6y65nzb.fsf@HIDDEN> <CAFwAk1pAbK=Z06f6xACWMLU3w=Vh25FpG9PNaZ0L1w87pryZmg@HIDDEN> <86a59p4c2o.fsf@HIDDEN> <CAFwAk1r_RpqS+Sueh5HLRKeWN3aTAumrJxPeUp8=HHwnRU7_og@HIDDEN> <86ecz12f6w.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 76852 <at> debbugs.gnu.org > Date: Thu, 13 Mar 2025 16:11:35 +0200 > From: Eli Zaretskii <eliz@HIDDEN> > > > From: 张海 <dreaming.in.code.zh@HIDDEN> > > Date: Thu, 13 Mar 2025 02:32:33 -0700 > > Cc: 76852 <at> debbugs.gnu.org > > > > > Currently, the two solution I'm pondering are: > > > > > > . remove from the list of ambiguous-width characters some of the > > > characters with low Unicode codepoints, including the 2 characters > > > used by whitespace-mode, on the assumption that these characters > > > are unlikely to be full-width in fonts used by Emacs users in CJK > > > locales > > > > I wonder how emacs 29.4 dealt with this - did it also have a special > > list of characters that it treats as half-width, while the rest are > > treated as full-width like what was in the announcement? > > Emacs 29 didn't have the notion of ambiguous-width characters. Each > character was either a half-width or a full-width. And the characters > used by whitespace-mode were half-width. > > > > . change the default of cjk-ambiguous-chars-are-wide to nil, on > > > the assumption that most users in CJK locales use fonts where > > > these characters have half-width glyphs > > > > I think this might be a good option because both TTY and some popular > > terminal emulators like gnome-terminal, gnome-console and foot ship > > with the ambiguous CJK characters defaulted to half width. > > Yes, but are we sure that users in CJK locales don't customize > terminal emulators to default the ambiguous-width characters to > full-width? If many users do that, then Emacs should cater to the > majority. > > > > Thanks. Let me think a bit more about what would be the best > > > solution. But could you tell which font you used that has full-width > > > glyphs for these characters? Is it unusual to use that font for > > > terminal emulators in CJK locales? > > > > The fonts I'm using, and most Chinese Linux users may be using (to my > > understanding), are: > > - WenQuanYi (WQY) fonts > > - Noto (i.e. Source Han, a different branding) fonts > > See also https://wiki.archlinux.org/title/Localization/Chinese > > > > The WenQuanYi fonts have a much longer history and the middle dot is > > always half width in them (checked just now). I'm currently using > > WenQuanYi Micro Hei. > > > > The Noto/Source Han fonts are relatively new and have an interesting > > situation where the Noto Sans CJK SC/TC have the middle dot as full > > width but Noto Sans CJK JP/KR have it as half width. > > > > Some Microsoft proprietary system-default fonts for Chinese > > characters, e.g. SimSun and SimHei, also have the middle dot as full > > width, but I guess few Linux users would be using it. > > > > I should also mention that some CJK users prepend an English font > > before their CJK font for usage in UI/terminal, because English fonts > > usually contain better quality glyphs for latin letters than the ones > > embedded in CJK fonts - essentially they only use the CJK-only part of > > the CJK fonts. So the middle dot will always be half width for them. > > > > > I'm wondering why we didn't hear > > > by now complaints from CJK users about the effects of > > > cjk-ambiguous-chars-are-wide other than on whitespace-mode. Maybe the > > > other ambiguous-width characters are seldom used in practice? Or > > > maybe too little time has passed since Emacs 30 was released? > > > > I think it could be both: > > > > 1. Emacs 30 is still new-ish, e.g. it landed in Arch Linux stable on > > Feb 25, only two weeks ago > > > > 2. Not a lot of CJK users set a CJK locale ($LANG) for their terminal > > - they usually set it for the DE but not necessarily in > > /etc/locale.conf for the entire environment, because that means > > localized messages won't appear properly under TTY with its default > > font. I did that because I would manually set LANG if I actually have > > to use TTY instead of a terminal emulator some day. > > Thanks for the info, I will think about this some more. I eventually decided to go with the more conservative approach of removing the two characters used by whitespace-mode from the list of ambiguous-width characters. This change is not installed on the emacs-30 branch, so the next Emacs release should have this problem fixed.
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 13 Mar 2025 14:11:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 13 10:11:50 2025 Received: from localhost ([127.0.0.1]:57540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tsjHp-0002WZ-N2 for submit <at> debbugs.gnu.org; Thu, 13 Mar 2025 10:11:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34670) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tsjHl-0002WK-CI for 76852 <at> debbugs.gnu.org; Thu, 13 Mar 2025 10:11:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tsjHf-0006Wa-Tf; Thu, 13 Mar 2025 10:11:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=BXygrnkixZSHiGlKbfCgf2Qj8r3zh9u6Ko3li4dzY6A=; b=cOApkheLSR1251pcswI3 qv1Rr8CGmQYOnLXzGonqKrjIeXNCn4aDgmkjImE6DlCQx48T9FoEZ7QpF0gKiD67XEtaOcXdu0ABL MlZwXOYoI5VEwoo2T2FWoGjRLE16JtcG0tbKHeHqKDjJBGGE+GkccYGnXRVlLEUSfQO/VJyE3xZn4 or71ocxua8gXNfaf0cRL19ZJWrNlFzlyrk0CCzCN5IwdoJRf3LWzkpZrcViWqxIFoDeytSBkw6Jkq z4FnSlLwzajxuea1vRBlTA13lIfLNpJfieDpGaGNfb6aBLv1oTERgIm70g2//38rFKHDda5q87yb6 WO9cO8oImjX99Q==; Date: Thu, 13 Mar 2025 16:11:35 +0200 Message-Id: <86ecz12f6w.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> In-Reply-To: <CAFwAk1r_RpqS+Sueh5HLRKeWN3aTAumrJxPeUp8=HHwnRU7_og@HIDDEN> (message from =?utf-8?B?5byg5rW3?= on Thu, 13 Mar 2025 02:32:33 -0700) Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> <86o6y65nzb.fsf@HIDDEN> <CAFwAk1pAbK=Z06f6xACWMLU3w=Vh25FpG9PNaZ0L1w87pryZmg@HIDDEN> <86a59p4c2o.fsf@HIDDEN> <CAFwAk1r_RpqS+Sueh5HLRKeWN3aTAumrJxPeUp8=HHwnRU7_og@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: 张海 <dreaming.in.code.zh@HIDDEN> > Date: Thu, 13 Mar 2025 02:32:33 -0700 > Cc: 76852 <at> debbugs.gnu.org > > > Currently, the two solution I'm pondering are: > > > > . remove from the list of ambiguous-width characters some of the > > characters with low Unicode codepoints, including the 2 characters > > used by whitespace-mode, on the assumption that these characters > > are unlikely to be full-width in fonts used by Emacs users in CJK > > locales > > I wonder how emacs 29.4 dealt with this - did it also have a special > list of characters that it treats as half-width, while the rest are > treated as full-width like what was in the announcement? Emacs 29 didn't have the notion of ambiguous-width characters. Each character was either a half-width or a full-width. And the characters used by whitespace-mode were half-width. > > . change the default of cjk-ambiguous-chars-are-wide to nil, on > > the assumption that most users in CJK locales use fonts where > > these characters have half-width glyphs > > I think this might be a good option because both TTY and some popular > terminal emulators like gnome-terminal, gnome-console and foot ship > with the ambiguous CJK characters defaulted to half width. Yes, but are we sure that users in CJK locales don't customize terminal emulators to default the ambiguous-width characters to full-width? If many users do that, then Emacs should cater to the majority. > > Thanks. Let me think a bit more about what would be the best > > solution. But could you tell which font you used that has full-width > > glyphs for these characters? Is it unusual to use that font for > > terminal emulators in CJK locales? > > The fonts I'm using, and most Chinese Linux users may be using (to my > understanding), are: > - WenQuanYi (WQY) fonts > - Noto (i.e. Source Han, a different branding) fonts > See also https://wiki.archlinux.org/title/Localization/Chinese > > The WenQuanYi fonts have a much longer history and the middle dot is > always half width in them (checked just now). I'm currently using > WenQuanYi Micro Hei. > > The Noto/Source Han fonts are relatively new and have an interesting > situation where the Noto Sans CJK SC/TC have the middle dot as full > width but Noto Sans CJK JP/KR have it as half width. > > Some Microsoft proprietary system-default fonts for Chinese > characters, e.g. SimSun and SimHei, also have the middle dot as full > width, but I guess few Linux users would be using it. > > I should also mention that some CJK users prepend an English font > before their CJK font for usage in UI/terminal, because English fonts > usually contain better quality glyphs for latin letters than the ones > embedded in CJK fonts - essentially they only use the CJK-only part of > the CJK fonts. So the middle dot will always be half width for them. > > > I'm wondering why we didn't hear > > by now complaints from CJK users about the effects of > > cjk-ambiguous-chars-are-wide other than on whitespace-mode. Maybe the > > other ambiguous-width characters are seldom used in practice? Or > > maybe too little time has passed since Emacs 30 was released? > > I think it could be both: > > 1. Emacs 30 is still new-ish, e.g. it landed in Arch Linux stable on > Feb 25, only two weeks ago > > 2. Not a lot of CJK users set a CJK locale ($LANG) for their terminal > - they usually set it for the DE but not necessarily in > /etc/locale.conf for the entire environment, because that means > localized messages won't appear properly under TTY with its default > font. I did that because I would manually set LANG if I actually have > to use TTY instead of a terminal emulator some day. Thanks for the info, I will think about this some more.
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 13 Mar 2025 09:32:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 13 05:32:52 2025 Received: from localhost ([127.0.0.1]:53713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tsevr-0007j6-Fd for submit <at> debbugs.gnu.org; Thu, 13 Mar 2025 05:32:52 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:49547) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <dreaming.in.code.zh@HIDDEN>) id 1tsevo-0007is-6T for 76852 <at> debbugs.gnu.org; Thu, 13 Mar 2025 05:32:48 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5e6c18e2c7dso1259330a12.3 for <76852 <at> debbugs.gnu.org>; Thu, 13 Mar 2025 02:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741858362; x=1742463162; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mVerlG0tX9c9SbudL4DK6PeoTHGwmQ0rLoHG2fzp9YE=; b=A2S45nPUGlHVQ8hbzI1y9vuAxZ8KYZFgCqS/wDs6JdNcaSLHKrRIli1iL3F3WRm8Cr py9L4sgGIFmLIYwT7/ovvPhU2X84SKeJpk89/I2leVr46b2+4i8NBiI2tzfElMaVTuvQ 5Xi3OPw6oub5wMQHI2xL4iZpftrk3j7EyhaljRBXMjUZShnRPZZu9O2JIsGiuUWrzFjk X0DLV5a1hSlQFgHXttv5dawWpiGYE1kPS45hVB1qgfHPCfJN9GBSvrh3fZwoslQqFNJN FkETcKJHGKLvbvAnHBF28GNkQ0mUQfrei0BD0F9N6Oaji5WyeGjF89581S/kXc7OfcSq 9OrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741858362; x=1742463162; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mVerlG0tX9c9SbudL4DK6PeoTHGwmQ0rLoHG2fzp9YE=; b=VIzDSO0v/I4B2RVcgIg1pGC77s79CEbyjjZF0IjtjiN/XA1aBsbmwrD1xvhGoekIfo THRFa3716AbxRRhVS4xcXYmbkvd3KscLiHMBr7p6L09UAmcMSAWtHQYzh2P+fLsup7uk Qr1PBYeT/FtrEuMppbjj+8jlmtbfa5uA1BmtNu3/WXH+PAfxW6AMdpgs8FGKDexDiI5h keB7ZgvmxsXmSMFopu9XBF1eSlCMaRNH87AfJXqFTNrMQCz9doL+M6Tg7NFKLqM0YM07 nhXTWe1vU+G4fcVO6SHgEGe7HjLxcmH6Br6F5rMtN3wkn4ainowGOuI0LRtGwUF93Ps1 4hwQ== X-Gm-Message-State: AOJu0YxmSsIWXW0pY1V2xKQHQJdO0p+bc+8Da0SS8Mp+Y7TwOUI9P4dW DB8mreqWaRAFO1c2pSZmWCAdLh5aVrNSTZNdfTycZpT3rBUy3KLZSOqQMsDXqw/WKuA4BvZbsN9 +XkBo7+Zf1bbHKH0Z86ypoE4I1vQ= X-Gm-Gg: ASbGncuWBwtA5VGbsm8R6NEouHyUXlALNAunLAZvZ5zR7QmWk+IlqDIqRXobYX6uxPf i71tsISJv2s4oYQw0BXS7poz4nP16AvSYw7RiGzx9bztDq+1E9zxTmYXE23uktipUtNfFCNVFih 6JI/Pg8WR3rvLs9Q9GTJZ4xbjqOfN18GUdGeeLqdA= X-Google-Smtp-Source: AGHT+IHYpQ7GHbaXWAxkcAZVjEambBvdHWPvSg6NogPJSwfPHNXuvqIRuBhC6x14HJ5gAE+beuPUIiuQ+Gfc/BtqsBw= X-Received: by 2002:a05:6402:2793:b0:5dc:cf9b:b048 with SMTP id 4fb4d7f45d1cf-5e5e22a96bbmr27929901a12.1.1741858361635; Thu, 13 Mar 2025 02:32:41 -0700 (PDT) MIME-Version: 1.0 References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> <86o6y65nzb.fsf@HIDDEN> <CAFwAk1pAbK=Z06f6xACWMLU3w=Vh25FpG9PNaZ0L1w87pryZmg@HIDDEN> <86a59p4c2o.fsf@HIDDEN> In-Reply-To: <86a59p4c2o.fsf@HIDDEN> From: =?UTF-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> Date: Thu, 13 Mar 2025 02:32:33 -0700 X-Gm-Features: AQ5f1JrmYfksCEvPllH1pcT-8k2viGIEv46CyWmYYMpJs6djYgvuo3gz98Yizlg Message-ID: <CAFwAk1r_RpqS+Sueh5HLRKeWN3aTAumrJxPeUp8=HHwnRU7_og@HIDDEN> Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal To: Eli Zaretskii <eliz@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > Currently, the two solution I'm pondering are: > > . remove from the list of ambiguous-width characters some of the > characters with low Unicode codepoints, including the 2 characters > used by whitespace-mode, on the assumption that these characters > are unlikely to be full-width in fonts used by Emacs users in CJK > locales I wonder how emacs 29.4 dealt with this - did it also have a special list of characters that it treats as half-width, while the rest are treated as full-width like what was in the announcement? > . change the default of cjk-ambiguous-chars-are-wide to nil, on > the assumption that most users in CJK locales use fonts where > these characters have half-width glyphs I think this might be a good option because both TTY and some popular terminal emulators like gnome-terminal, gnome-console and foot ship with the ambiguous CJK characters defaulted to half width. (Since I tested them and saw how wide the middle dot was) And some of them don't even offer an option to change it to full width. I don't know about other terminal emulators like KConsole though. > Thanks. Let me think a bit more about what would be the best > solution. But could you tell which font you used that has full-width > glyphs for these characters? Is it unusual to use that font for > terminal emulators in CJK locales? The fonts I'm using, and most Chinese Linux users may be using (to my understanding), are: - WenQuanYi (WQY) fonts - Noto (i.e. Source Han, a different branding) fonts See also https://wiki.archlinux.org/title/Localization/Chinese The WenQuanYi fonts have a much longer history and the middle dot is always half width in them (checked just now). I'm currently using WenQuanYi Micro Hei. The Noto/Source Han fonts are relatively new and have an interesting situation where the Noto Sans CJK SC/TC have the middle dot as full width but Noto Sans CJK JP/KR have it as half width. Some Microsoft proprietary system-default fonts for Chinese characters, e.g. SimSun and SimHei, also have the middle dot as full width, but I guess few Linux users would be using it. I should also mention that some CJK users prepend an English font before their CJK font for usage in UI/terminal, because English fonts usually contain better quality glyphs for latin letters than the ones embedded in CJK fonts - essentially they only use the CJK-only part of the CJK fonts. So the middle dot will always be half width for them. > I'm wondering why we didn't hear > by now complaints from CJK users about the effects of > cjk-ambiguous-chars-are-wide other than on whitespace-mode. Maybe the > other ambiguous-width characters are seldom used in practice? Or > maybe too little time has passed since Emacs 30 was released? I think it could be both: 1. Emacs 30 is still new-ish, e.g. it landed in Arch Linux stable on Feb 25, only two weeks ago 2. Not a lot of CJK users set a CJK locale ($LANG) for their terminal - they usually set it for the DE but not necessarily in /etc/locale.conf for the entire environment, because that means localized messages won't appear properly under TTY with its default font. I did that because I would manually set LANG if I actually have to use TTY instead of a terminal emulator some day.
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 13 Mar 2025 07:36:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 13 03:36:11 2025 Received: from localhost ([127.0.0.1]:53285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tsd6x-00028w-9a for submit <at> debbugs.gnu.org; Thu, 13 Mar 2025 03:36:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48768) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tsd6u-00028d-RZ for 76852 <at> debbugs.gnu.org; Thu, 13 Mar 2025 03:36:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tsd6p-0004Lk-3d; Thu, 13 Mar 2025 03:36:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=s2wDLStWSuRML5MilVuYhxMLG5vOmVKAzBGFGk/zNEc=; b=HKYxdPrCQ3aiDOXAWx37 YUFxBBBzyDOSEvvNxf4LXJexsA4shZZCMSGxuIuQwAMNi5qp7k0ipPKcbe5BjLMSlRwQd05HNlQ+o X28qDsl3BPB9upDAu2+GYgJ0pPLsUcDtqmsK21n4UkgSPoxEnoUKB6ypHhI4SO5QtBVbwgnvN/E3y VE8y9/5KYRMo4wsg0k5zozBZ5E0GTs/T2tZqz8CqC89sfHSifhi0qJ04CyMr2COJH/XvYbmxJ9gCF kKmk7PeJ5aRCN4uVG7tV9FkTVk66qwCK+iiTnLKLZpxNXpx5rxug7XME3Uy7RxgUwKXZe4zoH3U0z 2A36hiqZSYUG0g==; Date: Thu, 13 Mar 2025 09:35:59 +0200 Message-Id: <86a59p4c2o.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> In-Reply-To: <CAFwAk1pAbK=Z06f6xACWMLU3w=Vh25FpG9PNaZ0L1w87pryZmg@HIDDEN> (message from =?utf-8?B?5byg5rW3?= on Wed, 12 Mar 2025 23:49:17 -0700) Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> <86o6y65nzb.fsf@HIDDEN> <CAFwAk1pAbK=Z06f6xACWMLU3w=Vh25FpG9PNaZ0L1w87pryZmg@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: 张海 <dreaming.in.code.zh@HIDDEN> > Date: Wed, 12 Mar 2025 23:49:17 -0700 > Cc: 76852 <at> debbugs.gnu.org > > > The change was intentional, but it follows the Unicode data tables, so > > evidently some characters which were previously half-width because > > full-width by default in Emacs 30. Thus, the NEWS text is indeed > > slightly misleading. > > Does that mean the solution should be users who use a CJK locale will > need to set cjk-ambiguous-chars-are-wide to nil in order for > whitespace-mode to work? Not necessarily. I still haven't decided what would be the best solution for that, but telling users to sett cjk-ambiguous-chars-are-wide to nil for the benefit of whitespace-mode is definitely not high on the list, because the effects of that variable are global on the entire Emacs session. I'm asking these questions in order to understand better the issues and the possible solutions. Currently, the two solution I'm pondering are: . remove from the list of ambiguous-width characters some of the characters with low Unicode codepoints, including the 2 characters used by whitespace-mode, on the assumption that these characters are unlikely to be full-width in fonts used by Emacs users in CJK locales . change the default of cjk-ambiguous-chars-are-wide to nil, on the assumption that most users in CJK locales use fonts where these characters have half-width glyphs > > Hmm... does gnome-console have any configuration options for this? It > > sounds like it assumes these characters are half-width regardless of > > what the font does. This URL: > > > > https://superuser.com/questions/573876/how-to-let-gnome-terminal-to-use-specific-font-to-display-punctuations-in-their > > > > seems to imply you should be able to control this aspect of the > > terminal. > > I can confirm this does allow the middle dot to show up as two > characters wide (even without a font change), which looks strange but > does make line wrapping and editing work. OK, so in any case, we should extend the doc string of cjk-ambiguous-chars-are-wide to mention the possible need to customize the terminal emulator to draw the ambiguous-width characters according to the font that is actually being used. Thanks. Let me think a bit more about what would be the best solution. But could you tell which font you used that has full-width glyphs for these characters? Is it unusual to use that font for terminal emulators in CJK locales? I'm wondering why we didn't hear by now complaints from CJK users about the effects of cjk-ambiguous-chars-are-wide other than on whitespace-mode. Maybe the other ambiguous-width characters are seldom used in practice? Or maybe too little time has passed since Emacs 30 was released?
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 13 Mar 2025 06:49:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 13 02:49:35 2025 Received: from localhost ([127.0.0.1]:53116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tscNq-0008Cu-V0 for submit <at> debbugs.gnu.org; Thu, 13 Mar 2025 02:49:35 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:42308) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <dreaming.in.code.zh@HIDDEN>) id 1tscNn-0008Cc-UJ for 76852 <at> debbugs.gnu.org; Thu, 13 Mar 2025 02:49:32 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5e614da8615so1222824a12.1 for <76852 <at> debbugs.gnu.org>; Wed, 12 Mar 2025 23:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741848566; x=1742453366; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nmykG5c8HUrf86lkF7GeHwIgZ6h0A64iVuOQfmeyc+o=; b=HuaAmqCZgRBfhhQuvZ1asVfWcPxDXO1vHud7o4K+PcE20rXKjsTVI0anIQUxkB6Vf+ OH9V/93+0mcfx9qJAxKoP+/Vjdyu7f2VGqaRKa5/5BQuEXImP1hBeOl+RAUKqUzYKsQh ZAwANAM2Sk3e6a2vrW+lbda21OOq5XJXY0YCYDWVJXwC5qVWlvCEGmJJogCSNTD0ZdEV h/Fs63/z/Kn6QtYOBBFSlnnhNuTIu/8WTBnRnlec3D8O04K7MKWTpWsL4JfOYZWc+Sh9 6p+JN94vB+OhzZts9Z1AyEp+hLBMLUtCybYDGU+7hg/QzsUD74tb9soQPQ/ar64T7QAX m2xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741848566; x=1742453366; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nmykG5c8HUrf86lkF7GeHwIgZ6h0A64iVuOQfmeyc+o=; b=AjsqhVVIBgC8F0O0aNPo6XkLpT5P/pQBtHfY4OPyJGtcgOP6AJvbjVPzajctLfrA9P YqPAdq7yIDrSz0ssdSJ/TLTm4pkQBrJSqwfEAmV8uKGQnQNva3YmSGq0n77NcTcViQlQ Rz/g7dvcXm2HBf8mlxEb/YHhc2SzfdnxutjIglzWfBitp4eKSXhIMOLX83oaAmenBqtv 3Nq96AIkrVMdIp4jb+9wYL3Lpqr7JSLe2cgv6InI3FK8kUC/SQxIGl8y0CQkpWwf01ph NY4fBHzxct8aEOLCgMREtmR3gWnt1hhGxaWI5H622sv/RavhBFOtufhkO19CA0kmEBeq vCSA== X-Gm-Message-State: AOJu0YwDylUewzIt8r8A1HQakXQdFnSIZKQc2cmegdBmPL13k/cg8Gim emAEUi6suq912qcb+n8e31EdgVa3CppLJ3b7931U57cOoAGn8MCQGldxhg/nKnRobWJD5DXwLX5 5brPF7Uqm7IxFW5QK0rLHRq3ZJLZ6YGjI X-Gm-Gg: ASbGnctrJnBeZtA3V1CLOLpqknx5QWeaaoEg1zZu8vIFbngmKoG5LSXAyc6unqSgvEq mXVAzNmfNtg7bij30A5iBKoptjlTFfbiM2+yR5dNObERqX6Nksrh2Cx2fWPRjiicr8O130DlHmO 9iKx1LQ42flb4BPRV+0tHpfNGs97VrfxCOoj+z1iY= X-Google-Smtp-Source: AGHT+IG1e5cGL3JVZWN1qSa+Ei8R+pUCuAJUByduR78BC5/Gm3lZFnkVVOJIoCN4k8+N9U/QEClWmAQ0jvE4RwuWXjY= X-Received: by 2002:a05:6402:42ca:b0:5e4:d2c2:b8e8 with SMTP id 4fb4d7f45d1cf-5e814ee4a12mr1458397a12.16.1741848565541; Wed, 12 Mar 2025 23:49:25 -0700 (PDT) MIME-Version: 1.0 References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> <86o6y65nzb.fsf@HIDDEN> In-Reply-To: <86o6y65nzb.fsf@HIDDEN> From: =?UTF-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> Date: Wed, 12 Mar 2025 23:49:17 -0700 X-Gm-Features: AQ5f1JrPldHEoDwvmTSVZ5aKjfpBFo8jVqoku2AyHc4phk_8lQ8aKOJCIkkki84 Message-ID: <CAFwAk1pAbK=Z06f6xACWMLU3w=Vh25FpG9PNaZ0L1w87pryZmg@HIDDEN> Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal To: Eli Zaretskii <eliz@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > The change was intentional, but it follows the Unicode data tables, so > evidently some characters which were previously half-width because > full-width by default in Emacs 30. Thus, the NEWS text is indeed > slightly misleading. Does that mean the solution should be users who use a CJK locale will need to set cjk-ambiguous-chars-are-wide to nil in order for whitespace-mode to work? It seems to me this might mean most users with a CJK locale will need to do that if they ever use whitespace-mode, because it never makes sense for the whitespace replacement char (the middle dot) to occupy the space of two characters. > Hmm... does gnome-console have any configuration options for this? It > sounds like it assumes these characters are half-width regardless of > what the font does. This URL: > > https://superuser.com/questions/573876/how-to-let-gnome-terminal-to-use-= specific-font-to-display-punctuations-in-their > > seems to imply you should be able to control this aspect of the > terminal. I can confirm this does allow the middle dot to show up as two characters wide (even without a font change), which looks strange but does make line wrapping and editing work. On Wed, Mar 12, 2025 at 7:21=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote: > > > From: =E5=BC=A0=E6=B5=B7 <dreaming.in.code.zh@HIDDEN> > > Date: Tue, 11 Mar 2025 21:56:00 -0700 > > Cc: 76852 <at> debbugs.gnu.org > > > > > That rings a bell. What happens if, before turning on whitespace-mod= e > > > for the first time in a session, you customize the variable > > > cjk-ambiguous-chars-are-wide to the nil value? This must be done > > > either via setopt or interactively via customize-option, not via setq= . > > > Does the problem go away if you do that, and then turn on > > > global-whitespace-mode? > > > > I can confirm this does make the issue go away. > > OK, so we now at least understand what caused the issue. > > > But looking at the NEWS announcement for cjk-ambiguous-chars-are-wide, > > it seems to suggest the previous default was already full-width, which > > conflicts with the fact that whitespace-mode was working fine in > > terminal in Emacs 29.4 under a CJK locale. So was there an > > unintentional default behavior change, and should that be fixed? > > The change was intentional, but it follows the Unicode data tables, so > evidently some characters which were previously half-width because > full-width by default in Emacs 30. Thus, the NEWS text is indeed > slightly misleading. > > > > Can you look for a font where the characters U+00B7 MIDDLE DOT and > > > U+00A4 CURRENCY SIGN have fullwidth glyphs? I presume some > > > CJK-specific fonts should be like that, since these characters are > > > referred to as having "ambiguous width" in the Unicode character > > > database. If you can find such a font, please try setting up > > > gnome-console to use it, and see if the problem then goes away. > > > > No, the same issue persisted and the only difference is that this time > > only the first half of the full-width middle dot was rendered. > > Hmm... does gnome-console have any configuration options for this? It > sounds like it assumes these characters are half-width regardless of > what the font does. This URL: > > https://superuser.com/questions/573876/how-to-let-gnome-terminal-to-use= -specific-font-to-display-punctuations-in-their > > seems to imply you should be able to control this aspect of the > terminal. >
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 12 Mar 2025 14:21:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 12 10:21:24 2025 Received: from localhost ([127.0.0.1]:51146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tsMxX-0002EM-TC for submit <at> debbugs.gnu.org; Wed, 12 Mar 2025 10:21:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44154) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tsMxU-0002E6-Bq for 76852 <at> debbugs.gnu.org; Wed, 12 Mar 2025 10:21:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tsMxO-0002af-Q1; Wed, 12 Mar 2025 10:21:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=XMzxzm2W8DxehRwdHTI3pYmxblQmdCCicpCOsebkeqs=; b=N3j3L67d78tR3m8DC/hn tyySixbCap71p2yavZr8B4TWwlbAGWcdXEaX6T/PT+jEry46PU+L9ezDnXWLgN4zYGWcWSD644x8j f4o88FSZF3kH0qI2jnWNNb0SiYu4ADY9UwILzA9qf2Gndfgb5uQA3mGIAJouprfn3XfmENKr7HJBy E/pS5FUGxxpnlwXY7psFlXGaglOC5kYGE3SvoiBfhgaW8vbfqh+ESdz8MpUKHJ7UY/TH6uBSu6tkJ l8Lq/t/0+nllxnw5XG95dnGrjvaDfNELJ1xyy4ZyZ87MzHwVSSvcwsAAbuN8+umgP+4oTGkM36Zjp epwV8sESg0Sljw==; Date: Wed, 12 Mar 2025 16:21:12 +0200 Message-Id: <86o6y65nzb.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> In-Reply-To: <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> (message from =?utf-8?B?5byg5rW3?= on Tue, 11 Mar 2025 21:56:00 -0700) Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: 张海 <dreaming.in.code.zh@HIDDEN> > Date: Tue, 11 Mar 2025 21:56:00 -0700 > Cc: 76852 <at> debbugs.gnu.org > > > That rings a bell. What happens if, before turning on whitespace-mode > > for the first time in a session, you customize the variable > > cjk-ambiguous-chars-are-wide to the nil value? This must be done > > either via setopt or interactively via customize-option, not via setq. > > Does the problem go away if you do that, and then turn on > > global-whitespace-mode? > > I can confirm this does make the issue go away. OK, so we now at least understand what caused the issue. > But looking at the NEWS announcement for cjk-ambiguous-chars-are-wide, > it seems to suggest the previous default was already full-width, which > conflicts with the fact that whitespace-mode was working fine in > terminal in Emacs 29.4 under a CJK locale. So was there an > unintentional default behavior change, and should that be fixed? The change was intentional, but it follows the Unicode data tables, so evidently some characters which were previously half-width because full-width by default in Emacs 30. Thus, the NEWS text is indeed slightly misleading. > > Can you look for a font where the characters U+00B7 MIDDLE DOT and > > U+00A4 CURRENCY SIGN have fullwidth glyphs? I presume some > > CJK-specific fonts should be like that, since these characters are > > referred to as having "ambiguous width" in the Unicode character > > database. If you can find such a font, please try setting up > > gnome-console to use it, and see if the problem then goes away. > > No, the same issue persisted and the only difference is that this time > only the first half of the full-width middle dot was rendered. Hmm... does gnome-console have any configuration options for this? It sounds like it assumes these characters are half-width regardless of what the font does. This URL: https://superuser.com/questions/573876/how-to-let-gnome-terminal-to-use-specific-font-to-display-punctuations-in-their seems to imply you should be able to control this aspect of the terminal.
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 12 Mar 2025 04:56:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 12 00:56:17 2025 Received: from localhost ([127.0.0.1]:46914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tsE8f-00058Q-43 for submit <at> debbugs.gnu.org; Wed, 12 Mar 2025 00:56:17 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:60591) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <dreaming.in.code.zh@HIDDEN>) id 1tsE8c-00058B-O3 for 76852 <at> debbugs.gnu.org; Wed, 12 Mar 2025 00:56:15 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e5bc066283so9799183a12.0 for <76852 <at> debbugs.gnu.org>; Tue, 11 Mar 2025 21:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741755368; x=1742360168; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RNZEJ4SsAlIcPGwq0v8b8x8fRDoW8j04PB17Cb+5XUo=; b=j2nc2gG5t23hd7uGDabowiD7n6DkOPRaA0E18KGuP/VxMI8AR9n+92Cvyl2W/tcB8I RZjXJ7JZOxDS3X4ZHnc8GrqTRBs+2EdlgKoQmI+jeO7A7LHLKQiYvrps2SOptnQoVnLI YekrGxiQgkZiXJXIZpWRxRhDw/KlfXF3OYm04DoS1bSbKwPM357JBu9XDT0Bkr6s097C YGPnJnhZaZY0FGRBXQhltd31hLz4Xmv3WQtGzol594zqOGsQ6Iu4eZUR+nuQbxtmyjS4 4DmMSXS0955KWtdr5UFpOhjKO+Loae9XjlNxeaOrH3LD5BknQ48Hmpvap70oC+NZbQgA m86A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741755368; x=1742360168; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RNZEJ4SsAlIcPGwq0v8b8x8fRDoW8j04PB17Cb+5XUo=; b=cqq/p7l/w+XPi5Qow3dxuXSZ1SbpQrejBnOK3MlZx85ix5dh5P0ex2kAIsVKLEtNBi vWHXzPmxUBiuyvdKwZsAe4CD9Zj5X+5tBxCdXIsWjSkU6RCxmgmSL+5IThBKEi9a0+1P jaeJe6isak80E6jzix9nRvyBPK4UTc4UBnIbemslE3MZ+YkyyLbRQcXXbaxzGUpuqYWq 3XAnatoncCsC2WtSRfIkFEXfDv9QAN/2EMWlJ3I1K20DsSmAXO17z7Jm1V92vtTqHR7o QISgO50B5uTYIcWWmKZIdTzRRm/6UeGxQO8GdPvLQxCe8mXl/kZcNLyuvs9uA99s16IZ V5rw== X-Gm-Message-State: AOJu0YwD88ig5AQvA49TIGoKbuz760plevsu273SrKrjIKTDPoKmToyY rbang44vVqAkLWb5M/F1KqhzvZYB3JSJVWQE2tkUivzUpjCZsVhinQRiVQKEmh8N45qPx7T2hTm VvTHhB3ShIrSB/h74uoU8DHXJJMU= X-Gm-Gg: ASbGncsRODptla5BXoGgl+Bb0qaN3w2NizAqivGYLPcMQlyb17/ZznVGUwCzulVhD6z g1DjViQVuYD209dbj2ouN7tfMwVNn9p0ftyqM3/2wiUTPYl/zLtjn7rOuHyCebAKQ8PuOn/o9cC ZAxGXtubbnMeHf8z8xTrx5lsj+srdX8G06JPveoTQ= X-Google-Smtp-Source: AGHT+IH0EAT/7rZ13/rdmfWmxZG7v8YXIZmUTgi+JgV591WffHNggkS/VwY0/EWpNlq4b/18tlMbOj+NsLjaXoJP2Fo= X-Received: by 2002:a17:907:cf46:b0:ac2:a42a:999b with SMTP id a640c23a62f3a-ac2a42a9e35mr1385080866b.52.1741755368198; Tue, 11 Mar 2025 21:56:08 -0700 (PDT) MIME-Version: 1.0 References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> <86a59uit5w.fsf@HIDDEN> In-Reply-To: <86a59uit5w.fsf@HIDDEN> From: =?UTF-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> Date: Tue, 11 Mar 2025 21:56:00 -0700 X-Gm-Features: AQ5f1JrZk3DG4p7SkuWYHJZT1BAP-JLn64RZgy4Fgt15dwWHBPJshjUscr7mPxw Message-ID: <CAFwAk1oa8DBVqzmNE+iAZr+=5q7ofCeJQK0Xd8sLZPp5gN+5mw@HIDDEN> Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal To: Eli Zaretskii <eliz@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > That rings a bell. What happens if, before turning on whitespace-mode > for the first time in a session, you customize the variable > cjk-ambiguous-chars-are-wide to the nil value? This must be done > either via setopt or interactively via customize-option, not via setq. > Does the problem go away if you do that, and then turn on > global-whitespace-mode? I can confirm this does make the issue go away. But looking at the NEWS announcement for cjk-ambiguous-chars-are-wide, it seems to suggest the previous default was already full-width, which conflicts with the fact that whitespace-mode was working fine in terminal in Emacs 29.4 under a CJK locale. So was there an unintentional default behavior change, and should that be fixed? > Can you look for a font where the characters U+00B7 MIDDLE DOT and > U+00A4 CURRENCY SIGN have fullwidth glyphs? I presume some > CJK-specific fonts should be like that, since these characters are > referred to as having "ambiguous width" in the Unicode character > database. If you can find such a font, please try setting up > gnome-console to use it, and see if the problem then goes away. No, the same issue persisted and the only difference is that this time only the first half of the full-width middle dot was rendered.
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 9 Mar 2025 07:02:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 09 03:02:14 2025 Received: from localhost ([127.0.0.1]:57882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1trAfu-000336-6q for submit <at> debbugs.gnu.org; Sun, 09 Mar 2025 03:02:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38256) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1trAfr-00032t-OY for 76852 <at> debbugs.gnu.org; Sun, 09 Mar 2025 03:02:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1trAfm-0006u7-7s; Sun, 09 Mar 2025 03:02:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=rwiPQJGJNBL/VzP3c6kJ86nAyBbfYJNoOgYmpogElPo=; b=MDVx/IEI5XJQ9EjXNbFv liBrNSv/0qSQyo8QaIc1TtqbMV7JE9enLQChsgMcj+5CCE0HdJitCfXLllyuFXvbEtJhCx1+guFuQ hJW6HOFJxxzqPuXJnSlRgOefRsnktnVgUQ06mCjIkkgOqwP8F3+ftFSN2oXKsrbTWR6RmwDdOLq7I N44jxgsSXLaBBcTvgipzC6xbSgTuZEPvWaMQVdaERx5aQpx3gPVT9M0BVR79s5m1nud56+4g3ls+o EBpdOcJGppJ6YQ9wqAD+asmYCiVgLeL19T378nUaQLOt18PzpmLo31xvlirErR3WX5eyUMsBtoXwl mq+vV5YJxSSa0Q==; Date: Sun, 09 Mar 2025 09:01:47 +0200 Message-Id: <86a59uit5w.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> In-Reply-To: <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> (message from =?utf-8?B?5byg5rW3?= on Sat, 8 Mar 2025 18:53:35 -0800) Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: 张海 <dreaming.in.code.zh@HIDDEN> > Date: Sat, 8 Mar 2025 18:53:35 -0800 > Cc: 76852 <at> debbugs.gnu.org > > 1. env -i TERM=$TERM LANG=zh_CN.UTF-8 emacs -nw -q shows the issue; > 2. env -i TERM=$TERM LANG=zh_CN.UTF-8 LC_CTYPE=en_US.UTF-8 emacs -nw > -q doesn't show the issue; > 3. env -i TERM=$TERM LC_CTYPE=zh_CN.UTF-8 emacs -nw -q shows the issue > again. > > So I believe this is an issue that more precisely happens when > LC_CTYPE is set to a CJK locale. > > And I tried the tests above under tty (which uses the kerner default > font) and got the same result. So I'm relatively confident this issue > is unrelated to my fonts now. Can you look for a font where the characters U+00B7 MIDDLE DOT and U+00A4 CURRENCY SIGN have fullwidth glyphs? I presume some CJK-specific fonts should be like that, since these characters are referred to as having "ambiguous width" in the Unicode character database. If you can find such a font, please try setting up gnome-console to use it, and see if the problem then goes away. Thanks.
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 9 Mar 2025 06:12:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 09 01:12:20 2025 Received: from localhost ([127.0.0.1]:57770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tr9tb-0005nw-TN for submit <at> debbugs.gnu.org; Sun, 09 Mar 2025 01:12:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43534) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tr9tZ-0005nd-84 for 76852 <at> debbugs.gnu.org; Sun, 09 Mar 2025 01:12:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tr9tS-00013G-NC; Sun, 09 Mar 2025 01:12:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=RvdjE17PJt//iHYbPVY+Ew8eHZYfOKSZzaQlwGBTGjI=; b=EI8/x7tSY7FZmtBRNEQC IB2CZLCLQEg7bsk4Y6eKycSKcdzavVRbQhGJyl+7+K0RZlBy2Vf1D1Zf4YQG7ttuav6xcoXD9bWZ3 draLGk9cVTlfR5hf/kbGTrVcHMcN4uv0u3hhn9Yg/e+70/ZKcw31MbFGS9bypH/irKu3cxhH9Mov8 WJ75j+6PKtshtuZ43OiKnSJmu1PlysPW5f1DN74uOM8VwVnF9xyBe5hiSsE3Jokuf7HjFG0p2Qb5P lfwRQ2Otym/FiwvV6+jl8+rXRj1eVNhc8SyDtdeP24iyu53Cm5yjQinQHSer+CdjYSIF+uIY4phVv emBNgAU8peXg5Q==; Date: Sun, 09 Mar 2025 08:12:07 +0200 Message-Id: <86ikoiivgo.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> In-Reply-To: <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> (message from =?utf-8?B?5byg5rW3?= on Sat, 8 Mar 2025 12:43:09 -0800) Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: 张海 <dreaming.in.code.zh@HIDDEN> > Date: Sat, 8 Mar 2025 12:43:09 -0800 > Cc: 76852 <at> debbugs.gnu.org > > > I cannot reproduce these problems, but then I don't have access to a > > system with gnome-console. > > > > Can someone please reproduce these display issues and debug them? > > Thanks for the reply. I did some further debugging and found out this > issue also disappears on 30.1 if I set my LANG=en_US.UTF-8 , whereas > my current env is LANG=zh_CN.UTF-8 . The same issue still exists if I > set LANG=ja_JP.UTF-8 . (I do have all the three locales enabled in my > /etc/locale.gen .) So I suspect this might be a regression in 30.1 > (compared to 29.4) about logic handling full/half width characters > under terminal for the whitespace-mode characters (e.g. middle dot) > when LANG is a CJK locale. That rings a bell. What happens if, before turning on whitespace-mode for the first time in a session, you customize the variable cjk-ambiguous-chars-are-wide to the nil value? This must be done either via setopt or interactively via customize-option, not via setq. Does the problem go away if you do that, and then turn on global-whitespace-mode?
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 9 Mar 2025 02:53:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 08 21:53:58 2025 Received: from localhost ([127.0.0.1]:57503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tr6nd-000564-Nn for submit <at> debbugs.gnu.org; Sat, 08 Mar 2025 21:53:58 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:46543) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <dreaming.in.code.zh@HIDDEN>) id 1tr6nW-00055f-0h for 76852 <at> debbugs.gnu.org; Sat, 08 Mar 2025 21:53:54 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5e5b6f3025dso4253622a12.1 for <76852 <at> debbugs.gnu.org>; Sat, 08 Mar 2025 18:53:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741488823; x=1742093623; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=caTWnC8DIml/CotQjLeZN2scQUP5PvUaB+m+o2njLqU=; b=O2oVQVNycKkJ/6KWa+M7sLqIp+nyTLMpBGiAaGmpOGBVWD8HE/xiErwpxExKnMwYpc HbxDOrmnHOBvT+LWaa2tQZa3m6T00UdPcVvn4/In5fVTiEeNi/F039aGVHR4jCX/D+5u h+ugPXMkjm1hkGmMN0B4HnO9koKHBpEbHV9r6RoS9VuLapvWG2NOFsUyX6nhqRsRIHQu 2QDgivTfQqQP23dgLg/l7vihsamyqMagw1aGPJW4nrsNAcB0kHJDiZ8hxnXRVgU2NVEh PFdqxH1AgA2rYYDklmxhLq5040Bwl1dbZ/85iy9zntQbv0i1eJpWfAa31WHH8vAaWek3 NUFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741488823; x=1742093623; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=caTWnC8DIml/CotQjLeZN2scQUP5PvUaB+m+o2njLqU=; b=XDxiUS9qnErNZLlwxdm/FlwMVFHObwrQm/qA3tA1W6uWztZlygy53MoVXM0FIIQUTA f9T7BXLpyW3HmaNo9TyRJzStlEJ7F7OE+U/+lrEsNxNRIrQuzfHQwaLJqBMfHzHhwaCr zmGBMyLftwhE/8Jqxtb0VmiQ5HM4zH+xH2OwWe6K5ppNV7Skul6BYEXJZeLinh7PJ4wh EvrUwCOnjkldLoV/TLB8EIyjC4RAkxhPHEEAwl0IjGBwSvhzFKgf6Tk1aU1tv1XtRr95 i3+goBjapeKpt1scQNlxaCtGl8RvxdgX5ZhwE07Qvel54tik4TzTnpoZnNibqdZQf+d3 8BMQ== X-Gm-Message-State: AOJu0YyUZgjxBy2s0nL2Cu5+TNQHcGszX8yN25C8NPFW7OJUgTrFHLHX Kft0OLzDIT6FX8qXsD2OYXqaZVm8gNNgwoWgZpf8DMCzc0K7p1mKEV4pcfqGV2u+ysE9+UHjucV vhm4JlC+nbU53xBXsNyb6BGYLifs= X-Gm-Gg: ASbGnctrugDFE7M2uLCX4T4aeuyAHYjiB+FFQThZufOprfWyi2kE3Vu96zRxu871K8y mmp/bRqQ7yDHgThZVfJKwX+OmZhfrKOPU1E1kLoKSiTyRyBEII7ktzTBBR60Vmx5dnDOSG3nbVQ rZbstqTZYhcdperPyvLtS4MWrEoWHynaVQwonYZJ0= X-Google-Smtp-Source: AGHT+IFzeZfkrQJfeuMDfD7qiMBrsOw2/DOarD3O6cCjO4b/++PKFzAL2/z3Bf4BVPVIyjNemrZqNyfXaQNghT2UCNA= X-Received: by 2002:a05:6402:2546:b0:5e5:c637:b69 with SMTP id 4fb4d7f45d1cf-5e5e22a929bmr8494113a12.6.1741488822786; Sat, 08 Mar 2025 18:53:42 -0800 (PST) MIME-Version: 1.0 References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> In-Reply-To: <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> From: =?UTF-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> Date: Sat, 8 Mar 2025 18:53:35 -0800 X-Gm-Features: AQ5f1Jqlhr-8yTNO0aWohxSOVevQzQPnAsXfu1c6AyQu_YlkRf9t8DWAKdIcvHY Message-ID: <CAFwAk1q+Va666uAnCyvh=2g-QJtFQnhtk4fHRCWMmVM_=FH+zw@HIDDEN> Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal To: Eli Zaretskii <eliz@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > Thanks for the reply. I did some further debugging and found out this > issue also disappears on 30.1 if I set my LANG=en_US.UTF-8 , whereas > my current env is LANG=zh_CN.UTF-8 . The same issue still exists if I > set LANG=ja_JP.UTF-8 . (I do have all the three locales enabled in my > /etc/locale.gen .) So I suspect this might be a regression in 30.1 > (compared to 29.4) about logic handling full/half width characters > under terminal for the whitespace-mode characters (e.g. middle dot) > when LANG is a CJK locale. I want to add some more tests that I did, with en_US.UTF-8 and zh_CN.UTF-8 enabled in my /etc/locale.gen : 1. env -i TERM=$TERM LANG=zh_CN.UTF-8 emacs -nw -q shows the issue; 2. env -i TERM=$TERM LANG=zh_CN.UTF-8 LC_CTYPE=en_US.UTF-8 emacs -nw -q doesn't show the issue; 3. env -i TERM=$TERM LC_CTYPE=zh_CN.UTF-8 emacs -nw -q shows the issue again. So I believe this is an issue that more precisely happens when LC_CTYPE is set to a CJK locale. And I tried the tests above under tty (which uses the kerner default font) and got the same result. So I'm relatively confident this issue is unrelated to my fonts now.
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 8 Mar 2025 20:43:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 08 15:43:26 2025 Received: from localhost ([127.0.0.1]:57000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tr113-00015f-MK for submit <at> debbugs.gnu.org; Sat, 08 Mar 2025 15:43:25 -0500 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:55599) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <dreaming.in.code.zh@HIDDEN>) id 1tr111-00015L-7b for 76852 <at> debbugs.gnu.org; Sat, 08 Mar 2025 15:43:24 -0500 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5e5491eb379so4891153a12.3 for <76852 <at> debbugs.gnu.org>; Sat, 08 Mar 2025 12:43:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741466597; x=1742071397; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0YkkYjv70Wpa4Lkb877gdTj8PsIck7r5kQto17ESdWI=; b=GGPFmiXVp5bPeAaFNmpISCSDk4rvWeS3EAxBvhCae0cdpeFjZQBUXk4OTcgOPkdGbZ 9JJ6lJYW9OT1jQszkRwE+BgLBFN4wOrI7JOcLoMEODRqUKoakP+172gspV4UkIjEcoWg z6vplFa8zbRorLUdl94ybgLbf28S0a1ZC7AwwT3rmV30j1UlENYUj+4K13jCHQAUemuA EE9RDfAeIbK9J4c8h+aD2NISyjfoZ8DJdyIAgLxdsr6yl8H/Nci4tpO14NA3iBxj9dSe TFiJkSX32rQNFWaHmHhl3ViHLWr8FxH1y3FYd85MIyzku7lCHWDthTe+IgCdPs8xAbEz ObmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741466597; x=1742071397; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0YkkYjv70Wpa4Lkb877gdTj8PsIck7r5kQto17ESdWI=; b=otKO9UE8hjXZ5/LINuNazG8zrTqBdEEK6olC9LBEWERvIKcYxs5gzZ4nS6Fhgul3FI 9lfgSRYxq+PZyQIzGfXjm5m+NR5byTGm2hwLFZTccNNOp0zkvTTxkMIxFA9JAtV/VTzG mQwnL00hpeOak3EYHXOgY5gYF/d2aDrH2iA/eLmhkWwmF90MAckH8UnA/EAgI6HY3k2V 5UFz+3h2VC545TAL/JzQ9ssSqJCHImlzs19NI2JwZbFhrD8XJIxtvg802mDjurQKi06S Ui9u033y9bq1X2C0MdD1VHsSlCbwkdGCfew2FmPPizb/oTSKtnPsdxVrpn08X9gqu3MI wcCw== X-Gm-Message-State: AOJu0Yw/cXlzcbUjJt0zRoajlniK2USK8Ppnt4WJ+b77NiumhhoIbHdS quX4HVTpZGs3bp2Ay3SuuhWtu/TbhDWoHUnvNdsbSh9XoTk+sUZ3lmhqbm47igP4VLfhvkXW5Nh eNPHdTByVeRMRSlbO7aRkFpwKUJdVRwqq X-Gm-Gg: ASbGncvBCyNwLyt4TJkw5yQ8LVFcEo9Oml1vtCCTGebSZbbRoUHZ+uOFlG8btzPgOh3 99P/WXtFTkjOmjc1mSM4QMJC/26klSNHiUcucOGd9l++bTlL2h+jpdeIIup+Iax1JYWhOyd1cym KbkSADFdeCQbyzGvcGdbmEMX74fLkqw+zqrBGv7a31cOhenMDx8A== X-Google-Smtp-Source: AGHT+IHFzURnRLiHw2ekDCdkdhoA5CcJastWgUwYLhmB7wLjx44MKq/nXKKLJ6p3G4Ut5eHkCpajwkDtSeqtQakd8RU= X-Received: by 2002:a50:858a:0:b0:5e6:23c:a242 with SMTP id 4fb4d7f45d1cf-5e6023ca3camr5436833a12.18.1741466596834; Sat, 08 Mar 2025 12:43:16 -0800 (PST) MIME-Version: 1.0 References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> <86bjubkc2p.fsf@HIDDEN> In-Reply-To: <86bjubkc2p.fsf@HIDDEN> From: =?UTF-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> Date: Sat, 8 Mar 2025 12:43:09 -0800 X-Gm-Features: AQ5f1JqLrv4f7dBlifjg0FdP3V-fzf8d7KkU2asc7H2k9khx-2qc3t6uZ5kYr34 Message-ID: <CAFwAk1pSwTwYZsw6ynUfEbSdT2o8ofr52LpjS8reacHoShsN2Q@HIDDEN> Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal To: Eli Zaretskii <eliz@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > I cannot reproduce these problems, but then I don't have access to a > system with gnome-console. > > Can someone please reproduce these display issues and debug them? Thanks for the reply. I did some further debugging and found out this issue also disappears on 30.1 if I set my LANG=en_US.UTF-8 , whereas my current env is LANG=zh_CN.UTF-8 . The same issue still exists if I set LANG=ja_JP.UTF-8 . (I do have all the three locales enabled in my /etc/locale.gen .) So I suspect this might be a regression in 30.1 (compared to 29.4) about logic handling full/half width characters under terminal for the whitespace-mode characters (e.g. middle dot) when LANG is a CJK locale. I also tried to identify if this issue is related to my font configuration, but the issue still happened when I prepended `DejaVu Sans Mono` to my `monospace` font and verified that it became my terminal font. So I think this issue is less likely related to my font.
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at 76852) by debbugs.gnu.org; 8 Mar 2025 11:15:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 08 06:15:54 2025 Received: from localhost ([127.0.0.1]:53120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqs9q-0004EW-9M for submit <at> debbugs.gnu.org; Sat, 08 Mar 2025 06:15:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59758) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tqs9o-0004EI-8H for 76852 <at> debbugs.gnu.org; Sat, 08 Mar 2025 06:15:53 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tqs9i-000599-KM; Sat, 08 Mar 2025 06:15:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=UBSs/Qlho9oyT1ICectoJMR1cqk7Ttk6CxiVSEYyI18=; b=fQuooM1vdMH6JQf7Zi0b EmMJv2gdqpqPJNVrnXlP9rVHlQNtaqvsafE16wBu8clFvgrHIkzVR63YmWD50iXtX7Mgz7Jn+l1sV sK1AHDLijcHCQjOrZhMZdy+brBj315WaUwMlXN1k64soJ8GSKkCPKZqnEpRDhwH7m0OlZcNHVhZef cXVDhC3F+4vBuzsuCLmiCPX+8e3IRxPncFZkxCY0ND5cq60SYzQBNnTYb4n1csMjCwtfRLb2SOujV dAxPvsSK0sTL3UOemmZOkcg2VUygFpTjjMAi7pFeZmII5CsFwDCeVWqIKx2xf0nKBSQ8IMSckRQ1I Mj08G0UQmcJ9vw==; Date: Sat, 08 Mar 2025 13:15:42 +0200 Message-Id: <86bjubkc2p.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> In-Reply-To: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> (message from =?utf-8?B?5byg5rW3?= on Fri, 7 Mar 2025 13:22:45 -0800) Subject: Re: bug#76852: 30.1; Regression in whitespace-mode causes display issue under terminal References: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76852 Cc: 76852 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: 张海 <dreaming.in.code.zh@HIDDEN> > Date: Fri, 7 Mar 2025 13:22:45 -0800 > > I recently updated from Emacs 29.4 to 30.1 and noticed an issue when I > use global-whitespace-mode under terminal - each line would either > automatically wrap before reaching the right edge of the terminal, or > the cursor can go beyond the actual line end as if there were virtual > spaces. Inserting new characters also results in characters after the > insertion to drift right further than necessary and makes it > impossible to properly edit a document. The amount of drifting seems > to be related to the number of whitespace characters shown by > whitespace-mode. A image showing the bug is available at > https://imgur.com/a/PWbFgyE . > > I verified that this issue occurs with `emacs -nw -q` (so that my > .emacs isn't interfering) and the `*scratch*` buffer (its vanilla > English-only content) using `M-x global-whitespace-mode` on Emacs 30.1 > runnin under gnome-terminal, gnome-console and foot (the Wayland > terminal emulator) on most recent Arch Linux running GNOME 3 on > Wayland. My locale is zh_CN.UTF-8 and my terminal font, i.e. the > `monospace` font, is set to `WenQuanYi Micro Hei Mono` (文泉驿等宽微米黑 in > Chinese, part of the wqy-microhei Arch Linxu package), if that > matters. Downgrading to Emacs 29.4 immediately solved this issue so I > believe it is a regression. > > Here's a screen recoding and the coresponding termscript of this issue: > - Video: https://imgur.com/a/IhA8JxD > - Termscript: https://files.catbox.moe/tskpy8 > > I've also attached some environment info and output from `M-x > report-emacs-bug` below, and hopefully they can be helpful in > debugging this.Thanks in advance! Thanks. I cannot reproduce these problems, but then I don't have access to a system with gnome-console. Can someone please reproduce these display issues and debug them?
bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 8 Mar 2025 06:53:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 08 01:53:22 2025 Received: from localhost ([127.0.0.1]:52457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tqo3k-0003ma-FI for submit <at> debbugs.gnu.org; Sat, 08 Mar 2025 01:53:22 -0500 Received: from lists.gnu.org ([2001:470:142::17]:35330) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dreaming.in.code.zh@HIDDEN>) id 1tqf9w-0004JS-7z for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 16:23:09 -0500 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 <dreaming.in.code.zh@HIDDEN>) id 1tqf9o-0004Ue-TD for bug-gnu-emacs@HIDDEN; Fri, 07 Mar 2025 16:23:02 -0500 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <dreaming.in.code.zh@HIDDEN>) id 1tqf9k-0005jZ-Sw for bug-gnu-emacs@HIDDEN; Fri, 07 Mar 2025 16:23:00 -0500 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5e614da8615so602291a12.1 for <bug-gnu-emacs@HIDDEN>; Fri, 07 Mar 2025 13:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741382574; x=1741987374; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hYBLsqiz4CTFsJFcGxpb0IpRu/eBh46DIjOV+kASB9Y=; b=R++if4s9wof6eUiTQLoTEN+KDB6AQXXbuJQvHtFotTyayvJB0tbWXamqAXOaGuFy8C 6xqzf5iWuhCjhVvjofew8LkHKohwOuWFyleo3kB/bOqNeikJHNjP/0Q/8A9ERqH9fO/L pMhIUAGJ4YtkzU3XbCZ/byJ0SmM9NpyfX74g2SOM8ToYb+b+v2IHykFsS/Ii82Frh/hy SV47BSBYP7WrbDtz/hIHYljFIx25cNaH9y+/+wAKrZAXfGK107mhlb6a0owZPqhNXxNi QPBpATdXxC4cIKRWjCUXD5btlKPY/iFEcW8kFAkvSG5Zqv3dnlOYC4c5lpffQaDQXwnK 3tvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741382574; x=1741987374; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hYBLsqiz4CTFsJFcGxpb0IpRu/eBh46DIjOV+kASB9Y=; b=cP9smO6XHDzsTxYcaO2tKLuAF1jbOsrZrFhxAZCMvAHTyvm1krXeyZ6mzhWVIwjB4C puipS2HtmnPMNsYzQTyf/gbwUqUGR6IYVogrmkrfN8dx4nnvBRNB9uX7PfVqy/CdXnM9 8KrnJIeHLq5SEfvvhFCTribWtBw1+jq8NR7RRTCVOIUFrp84ycGsvICXgK9cP5M78zsW uyy1bGJZU5i1CuHNCgfSZF4OYJByXaTy42Xo8JGQbA3IOp/Q5eDXBBDYd8qFFKY2PhHK Fq8lymS2yw1ZCvwbWv167pLjl4HK7tTohaiV0FcBS5JZ4+eQ0cKHvvGYrywy1xVz9//P oLEQ== X-Gm-Message-State: AOJu0Ywgg41pqhYV2SaG5bjAf1d16H78E+JyVvJUDwfnvjmGNtD52Hz/ U8Hg68tYmzk2vXIYwDdeOnITyys53dkBCT6/KCiM+9kC7yrIYdpymur72Z+m10Nd5aetNTAdqqF CeROeHsdLQffSpJ8XqLoGWC0MEmT7G5um X-Gm-Gg: ASbGncvBpbhOK/I/Oodj0EG6huOvE+vZctsd3eVDwMG86oCONDzgONfLzAZ5RsJySd6 TmIlZKJALXhpLg4/jSriT75YdbdizeLaPAT82sTkVS8Bb1DethS7/po9c/QE7vpSHNftCjxgAM9 HLI5s+x/Fhq31uDUlEdKjH9svO5YamHfRkFx5/boM= X-Google-Smtp-Source: AGHT+IEbXswIr+VZzmywKiiA3mLX6YcLG6PHvv1GB4MrsiosTjlJ7Zg4AMASfvF7rZRUEbdZ8ZDOCDRSU4uafvjfs5k= X-Received: by 2002:a05:6402:40d2:b0:5e4:a1e8:3ef1 with SMTP id 4fb4d7f45d1cf-5e614fb93b7mr1200672a12.9.1741382573807; Fri, 07 Mar 2025 13:22:53 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?5byg5rW3?= <dreaming.in.code.zh@HIDDEN> Date: Fri, 7 Mar 2025 13:22:45 -0800 X-Gm-Features: AQ5f1JqXFlLdrkT7X0BtlYzwf0AbXiuEXBRlqpovRAowkzGylkfu4Dyl3_u63DI Message-ID: <CAFwAk1ofyQitp7ySyxUQ9TZa9Ln9fvrf9RJeMA34gUJBFPWObQ@HIDDEN> Subject: 30.1; Regression in whitespace-mode causes display issue under terminal To: bug-gnu-emacs@HIDDEN Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=dreaming.in.code.zh@HIDDEN; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 08 Mar 2025 01:53:19 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Hi Emacs maintainers, I recently updated from Emacs 29.4 to 30.1 and noticed an issue when I use global-whitespace-mode under terminal - each line would either automatically wrap before reaching the right edge of the terminal, or the cursor can go beyond the actual line end as if there were virtual spaces. Inserting new characters also results in characters after the insertion to drift right further than necessary and makes it impossible to properly edit a document. The amount of drifting seems to be related to the number of whitespace characters shown by whitespace-mode. A image showing the bug is available at https://imgur.com/a/PWbFgyE . I verified that this issue occurs with `emacs -nw -q` (so that my .emacs isn't interfering) and the `*scratch*` buffer (its vanilla English-only content) using `M-x global-whitespace-mode` on Emacs 30.1 runnin under gnome-terminal, gnome-console and foot (the Wayland terminal emulator) on most recent Arch Linux running GNOME 3 on Wayland. My locale is zh_CN.UTF-8 and my terminal font, i.e. the `monospace` font, is set to `WenQuanYi Micro Hei Mono` (=E6=96=87=E6=B3=89= =E9=A9=BF=E7=AD=89=E5=AE=BD=E5=BE=AE=E7=B1=B3=E9=BB=91 in Chinese, part of the wqy-microhei Arch Linxu package), if that matters. Downgrading to Emacs 29.4 immediately solved this issue so I believe it is a regression. Here's a screen recoding and the coresponding termscript of this issue: - Video: https://imgur.com/a/IhA8JxD - Termscript: https://files.catbox.moe/tskpy8 I've also attached some environment info and output from `M-x report-emacs-bug` below, and hopefully they can be helpful in debugging this.Thanks in advance! Hai TERM=3Dxterm-256color No /etc/termcap LC_ALL=3D LC_COLLATE=3D LC_CTYPE=3D LC_MESSAGES=3D LC_TIME=3D LANG=3Dzh_CN.= UTF-8 fc-match monospace: wqy-microhei.ttc: "=E6=96=87=E6=B3=89=E9=A9=BF=E7=AD=89= =E5=AE=BD=E5=BE=AE=E7=B1=B3=E9=BB=91" "Regular" In GNU Emacs 30.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.48, cairo version 1.18.2) Windowing system distributor 'The X.Org Foundation', version 11.0.12401006 System Description: Arch Linux Configured using: 'configure --with-x-toolkit=3Dgtk3 --sysconfdir=3D/etc --prefix=3D/usr --libexecdir=3D/usr/lib --localstatedir=3D/var --disable-build-details --with-cairo --with-harfbuzz --with-libsystemd --with-modules --with-native-compilation=3Daot --with-tree-sitter 'CFLAGS=3D-march=3Dx86-= 64 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3D3 -Wformat -Werror=3Dformat-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs -flto=3Dauto' 'LDFLAGS=3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=3Dauto'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: zh_CN.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: global-whitespace-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr filecache compile comint ansi-osc ansi-color ring comp-run bytecomp byte-compile comp-common rx emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-start cus-load disp-table whitespace china-util rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 81904 15452) (symbols 48 7904 0) (strings 32 19386 2345) (string-bytes 1 583198) (vectors 16 12555) (vector-slots 8 212422 11491) (floats 8 22 3) (intervals 56 411 13) (buffers 992 12))
张海 <dreaming.in.code.zh@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#76852
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.