From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: Strange whitespaces. Date: Thu, 30 Sep 2021 23:46:27 +0800 Message-ID: References: <8735pmml4r.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31822"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Emanuel Berg To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 30 17:59:29 2021 Return-path: Envelope-to: geh-help-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 1mVyT2-00082r-VN for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Sep 2021 17:59:28 +0200 Original-Received: from localhost ([::1]:49184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVyT1-00086l-Po for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 30 Sep 2021 11:59:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVyGg-0006V3-39 for help-gnu-emacs@gnu.org; Thu, 30 Sep 2021 11:46:42 -0400 Original-Received: from mail-ua1-x92d.google.com ([2607:f8b0:4864:20::92d]:35507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVyGe-0006SZ-Cg for help-gnu-emacs@gnu.org; Thu, 30 Sep 2021 11:46:41 -0400 Original-Received: by mail-ua1-x92d.google.com with SMTP id k32so4559782uae.2 for ; Thu, 30 Sep 2021 08:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hnmx9Sj1yBQYOPWBS1MHM4VJv9ij5p51BYv0uBoHPWs=; b=C55JpwMSCvuqC98RIBCBfWjmFZrtoQtzP25GlVn65Eo8eV5pdJTIckpHs2Jds5ABgm +RQ5Rd2vhlS2S3vuzDEBxhBjp/12DJ+i/YwpymsRZlmIp4b64sgqV8OarNgG9jHaO8pI gLIgoWimdjZ0Pd/OjIfB/FYfae+kVsocSLPcxtQ3LiFrKML9LImcdI3OakwoiKMXxx3d jFoBx7Jyhckhhuds6esfht8EB10CfTR7xq2hNGDrEXkGE5GBnA9ihw93yRmGYWDyAbYQ 4Aro6k9ZGnJKxHER2852DDfaccXwM9d390LgAm/dITpg27m6KD7UUMFfdXe6Y8nLsirH Y8Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hnmx9Sj1yBQYOPWBS1MHM4VJv9ij5p51BYv0uBoHPWs=; b=xYUmOeUGaJhHTTJSKVpmIH29coMv/Q/eBTGUGczwyxsFXwUB/oN1VvlGZnkDOefHdh P3rVxPFoTT7BYPRTkPSKCYcGMMhZNR4+zDei9+h8hKvZS7iz56as0AnD6/pHSwGXGeF6 FZ/zysqvwF/9t3R+C98g/q4a/U0PJw7kjTBkatZKs1zFoeVZocuN7vSRyJdRXR8pzqPc 2SpOSvNJOVV5YOtC43gUVG0EK3GsP/SjBi7ka0+mCJ75dF0jTvP9fk41Tb44P9DDYo4N 2n+8tVyNeqnnHtfZcOJjjv7X2YRoe4U6xz9F/ck9DnKSdAmkrLLLq/38ioQRDq1iaQJP 23fA== X-Gm-Message-State: AOAM531qjdbtodUhAF4s8btiflsC+kldjoLquR+VuOqKR09ZOWrJTxOT EIw5BdVw+UIUR8ONXP7kSJ68rQcKTukciJtzIpQ= X-Google-Smtp-Source: ABdhPJzi4Ke4UKXdFIVE+FQYAnRL5NvOb9ZT5xarchq6PzMujRh9MRtPyXgOqgzhI1Hu+B5b/z3zxkj2SnLG8mq2lno= X-Received: by 2002:ab0:6616:: with SMTP id r22mr6045429uam.129.1633016799296; Thu, 30 Sep 2021 08:46:39 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::92d; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x92d.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-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133443 Archived-At: On Thu, Sep 30, 2021 at 11:20 PM Drew Adams wrote: > > > Why are both displayed as red underscores in Emacs? > > I don't think the EN SPACE is displayed that way. > Not with `emacs -Q' (no init file), at least. But > I don't have an Emacs 28 prerelease build - maybe > they changed Emacs 28 to highlight that as well. > > As for a NO-BREAK SPACE, it's highlighted (with face > `nobreak-space', which inherits from `escape-glyph') > if variable `nobreak-char-display' is non-nil, which > it is by default. > ___ > > Note that `nobreak-char-display' highlights all > no-break (aka "hard") characters, not just the > no-break space. IOW, it highlights hard hyphens > (code point 8209) as well as hard spaces. What's the meaning of "hard" here? > Vanilla Emacs doesn't let you highlight these > chars differently (e.g. highlight only hard spaces > or only hard hyphens. (This highlighting > is low-level - it doesn't use Font Lock mode.) > > But you can highlight such chars differently, or > highlight only one of them, using library > `highlight-chars.el'. > > https://www.emacswiki.org/emacs/ShowWhiteSpace#HighlightChars Thank you for telling me about it. HZ