From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: New line and trailing whitespaces Date: Tue, 23 Apr 2024 17:38:15 +0200 Message-ID: References: <86sezg87oh.fsf@gnu.org> <86o7a486gq.fsf@gnu.org> <86cyqj8f1a.fsf@gnu.org> <86h6fu6jn0.fsf@gnu.org> <86le544i6t.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 23 17:39:04 2024 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 1rzIEZ-0003Lm-2b for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Apr 2024 17:39:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzIE0-0007o5-7f; Tue, 23 Apr 2024 11:38:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzIDx-0007n8-9B for help-gnu-emacs@gnu.org; Tue, 23 Apr 2024 11:38:26 -0400 Original-Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rzIDt-0006P8-Sh for help-gnu-emacs@gnu.org; Tue, 23 Apr 2024 11:38:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1713886699; bh=nDseZzUHsLLOeaoULL2bX3RqZo0tGcI9/JeiPVZ9PUk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=Kmnu0XX1lgX1+pBO4ITMgC2dfABdu4qFWxQQzTQ5hNdo6ZW97cX88Qv9yWOL74C+EIebb8gQZ/tHCoYgnhzK5r4IUeWa0PFEwnAiO7/dEofBULAS1gOo1IaC6P9nSbm+uTUackBIw/M5nIpsXihp2AwXySPT/KIMofUTDuLMAkgsfsq4FaSVUN8PfT0QurYo/8tvdTEtowmIDbX1lO1YqRu9KzWr29dGWoHu+CxvEnEQdzZCMWmdglTIqRdfgpMJ3CBS5F2gdfY1n+f5RwJnJKR7P8XbDLFprm9ex2K/GQ2hmWQyoU8ht1dgdxSuUVXfJOxchqNx5g5kVDgFbYv2ug== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1713886699; bh=WG5SqAsngmULxzwU3ctoYgbER0N67rXYFKIhYBxVjhT=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=YvADrvloNOuKiejB6BKFKsjMVVzgslF1bmNwq3IOQwoRfLw4zR/wYbkRbGwurAQrKXX+ljUOMsGe+CG4fU4THIzanQ/EwqxwQoqTMoxRm5/Ele8aCMIt/vkX2rlduxc0LKd1H/avLUQvhCk4TSTh4jelon+yd2eNgqcBQ4oJwyk6+28RL333yhkO1UkMf7AqZG+i1fsqEan3jx/G9S+c3u57VGbR1E6Z73S7ccdbfpHuebxhp/6UMesxLEhc6Nvt0NS0EC9DkjqsTPr5YpsTgXF2oihLbacvC2c81QBRlPEUDnX1Ve8QKOkGkzvhCv1m2v/esu98v56H4tFYaMQJCg== X-YMail-OSG: vI_9WA0VM1m55WWy3imP9xBXOCoN55DRFdzMHDO5hVxaOE.1I8Ezn_bbjC7jo04 R4ysDXKGgK.GY4hwGwf6h2.vzroG8hddQehM6Q5boWXlVs0dGUP32RUQCauqbg3uxL6aSr4h.Fs9 SwBIo3GB40JzpNuERJ1h27N_LzRdhY8sXlktyN0yosq5sI06sW9xBX_o1.pE9fbjVzasuqBYTaQr XjVAlRIN_gWzTQBa6nOx4N_JRazjabB5plKKU6p1eAUC1in4rL.6pKoB9ESHFtRXYx.NOk9W6mm4 pkJMR3DvHT1B9oR6cuYXsTe66Ob1zIHAl5TYandWjjggaMFpKuD0j8r9JmrG8fKjhberYY_BxTHj _wxthal9d8q26SoSkvwfxvqJW8tY3XLJELouaZZIn8V0F9XRl8qM_L8p8TvhOm8StPvod1cQ64SE Ehkqd2itCiQ7gQsmWsumYBByHm1ekFFDIUuBdVAwBrD7c5cU0K4ssfIaVQmERpI0gZILAIv6Ojj2 1c0gZiVZ6WxzVQrgGYn6iYmJbAcFttSJ.oxyUvq.2hXgFuIXzjJ0Lecg.OUO7e1VLXI0ZDzvB63I s20IqnWwvYSW.VJfpAVzlqbmADZOj2n38dNwwZhwJGUpCciADME3LTbcAuFuSalAPi5RxlVz8_D6 ZrD3333IffeVIzUVxpZZCDvxTpctECO1.JYt9KMiKqJ5l9nB0CMyuhDyEIFk22eUn20vxh6vpD1T zny0D0fYhW2Roy0aZg.aqDMynAiadOJ0Eku1KMOZv_wJ4hkoX6gXynfq3W5HtqF59XKDBfuZvKfo geunqj58c5cBvoeTljp9XL7UGy6J2enRY_4MVibFRw X-Sonic-MF: X-Sonic-ID: 09ff1f4a-2ff2-47dd-92c1-7fce5cd45d6c Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Tue, 23 Apr 2024 15:38:19 +0000 Original-Received: by hermes--production-ir2-7b99fc9bb6-8xl6l (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1f99633bee56faf2d0dff3eacfab858a; Tue, 23 Apr 2024 15:38:17 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86le544i6t.fsf@gnu.org> X-Mailer: WebService/1.1.22256 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.128.32; envelope-from=spacibba@aol.com; helo=sonic304-9.consmr.mail.bf2.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146447 Archived-At: On Tue, Apr 23, 2024 at 11:06:02AM GMT, Eli Zaretskii wrote: >> Date: Mon, 22 Apr 2024 14:22:43 +0200 >> From: Ergus >> Cc: help-gnu-emacs@gnu.org >> >> >> That face seems apply only to the tab whitespace when whitespace-style >> >> has `tabs`, but not to when `tab-mark` applies. >> > >> >You lost me here. But if all you want is to know what face is used on >> >some text, simply use "M-x describe-text-properties RET" with point on >> >that text. >> > >> Whitespace mode "shows" the tabs in two (independent) ways: >> >> 1. "Colorizing" the tab whitespace with some color (face tabs) >> 2. Add a mark in the whitespace space like | or � (tab-mark) >> >> The whitespace-tab face applies only to 1, but I don't find how to make >> it apply to 2 >> >> >> Define the whitespace-tab face foreground and background >> (setq-default whitespace-style '(faces tab-mark)) >> (whitespace-mode 1) >> TAB >> >> I see: the �, but it is always white, independently of whitespace-tab face. > >You need to customize whitespace-display-mappings. Specifically, the >tab-mark element of the value is by default the vector '[?� ?\t], and >you need to replace each of these two characters with a glyph that has >the face you want, using make-glyph-code. Caveat: a comment in >whitespace.el explains why only newlines are given a face: > > ;; Only insert face bits on NEWLINE char mapping to avoid > ;; obstruction of other faces like TABs and (HARD) SPACEs > ;; faces, font-lock faces, etc. > Ahh this is exactly what I want.. Do you think it worth adding your paragraph as a comment somewhere in whitespace or reference that in its manual section?