From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Neil Roberts via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#44236: [PATCH] xdisp: Apply nobreak-char-display also to NARROW NO-BREAK SPACE U+202F Date: Tue, 27 Oct 2020 10:17:35 +0100 Message-ID: <878sbsownk.fsf@yahoo.co.uk> References: <20201026111348.773761-1-bpeeluk.ref@yahoo.co.uk> <20201026111348.773761-1-bpeeluk@yahoo.co.uk> <837drdeyss.fsf@gnu.org> Reply-To: Neil Roberts Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15342"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44236@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 27 10:18:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXL7M-0003mX-QS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 10:18:12 +0100 Original-Received: from localhost ([::1]:48048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXL7L-00054O-Rp for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 05:18:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXL7C-00050I-L6 for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 05:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXL7C-0002gI-Bt for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 05:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXL7C-0006Ag-8L for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Neil Roberts Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Oct 2020 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44236 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 44236-submit@debbugs.gnu.org id=B44236.160379027223686 (code B ref 44236); Tue, 27 Oct 2020 09:18:02 +0000 Original-Received: (at 44236) by debbugs.gnu.org; 27 Oct 2020 09:17:52 +0000 Original-Received: from localhost ([127.0.0.1]:42867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXL72-00069y-Fq for submit@debbugs.gnu.org; Tue, 27 Oct 2020 05:17:52 -0400 Original-Received: from sonic302-20.consmr.mail.ir2.yahoo.com ([87.248.110.83]:43742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXL6y-00069U-2J for 44236@debbugs.gnu.org; Tue, 27 Oct 2020 05:17:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1603790262; bh=tb5HBHknfw4z+121JxJVcv79a3FNy6ovL5kEUPmgDB0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject; b=tpDEIU2germXedQ7kEso20iCq0WlXJuSEwQJcIP/ngeCBOVp7FgENOU1U7wUHrJGiRKUw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ZHX7V0y1xWKU2Mvi1H8QzfaOmMEpiOB_l5IKVYQVtEzTkCDvIyVG mll2w0NPB2qhtA3lRqUCDs8g44.AuaFHnGdq7Rv1NvYGZS1l1Qlo4VHJgaM6fy_8c_uSbTInHaGm CcUE_Q8N922PIR10YEDJjS9t_WDNX8Ii_4RApgOghQIgaUy6QdfZMMBg3dMkep6JG713nywsCJY2 7_Im2Nl4Mqbz_AHSvJiIPbmtgb.9Ad8mj_OSGBMlxLalM_ymxQqVFVXSdg0XzQ2m7PrYhW1UlLdI .49luDJhkuRylQLBlw0S5ugnKFM49zBvIWUODsm0ocqDzmI70Asx5rGA4gYlVp.Ziflx3gT4jpQQ w58O9AybSMkKMNIbbeNXEjVadrAmpaQKz0aD_mj8bkh5_tbIKaDFnIn3AgRaKmXnRG8KvnJUfAMU nXbQK0Ev5d26WrAZoYzAUZqn1F5qSO8OA4Sqim7gcEDLi7EyCOrxyCnPAmc02sxR0eoxs5UiebUD 0JMWRs_8kJ7LPi4JKSUUTwgcVTsXA3RsANCIkDvrrE Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ir2.yahoo.com with HTTP; Tue, 27 Oct 2020 09:17:42 +0000 Original-Received: by smtp420.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8eb6a6cce067a3ebf80670026bf7d1bf; Tue, 27 Oct 2020 09:17:38 +0000 (UTC) In-Reply-To: <837drdeyss.fsf@gnu.org> X-Mailer: WebService/1.1.16868 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191718 Archived-At: Eli Zaretskii writes: > But what is the purpose of showing this character like we do with > NBSP? We do that with NBSP because otherwise it will be easy to > interpret NBSP as a SPC: they have the same width and appearance on > display. By contrast, U+202F NARROW NO-BREAK SPACE is much thinner, > and cannot be mistaken to be SPC. Most people use Emacs with a monospace font, as is the default if you don=E2=80=99t change it, so in practice U+202F looks identical to NBSP and = the regular space. I would assume that most people using these characters would be editing the source code for a document that would be displayed in something else, such as editing an HTML document. In that case you want to make sure that you got the right spaces in the source code and without the visual indication it is really hard to do. I guess ideally in my case it would be even better if U+202F had a different face than NBSP so that I could also make sure I picked the right non-breaking space when typing a document in French. The other use case, which is probably more common for me, is that I am editing some source code and I don=E2=80=99t want any non-breaking spaces at all. With the b=C3=A9po keyboard layout it=E2=80=99s kind of easy to accide= ntally type them, so I just want to be able to recognise either of them. In that case having the same face for both characters is still helpful. > OTOH, if we make U+202F stand out, then why not others, for example > U+2007? or U+2060? or U+2002? or U+2003? or U+2009 etc. I think it would make sense to highlight all of the spaces that look exactly the same as a regular space. That would exclude U+2060 because that is zero-width. Maybe we could use all of the characters from the =E2=80=9Cspace separator=E2=80=9D Unicode class except U+0020. https://www.compart.com/en/unicode/category/Zs - Neil