From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18548: Emacs whitespace mode Date: Wed, 23 Feb 2022 15:58:33 +0200 Message-ID: <83y221sn06.fsf@gnu.org> References: <874k5rx5e4.fsf@gnus.org> <87ee3t7mbt.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37793"; mail-complaints-to="usenet@ciao.gmane.io" Cc: nathaniel.braun@gmail.com, kipcoul@gmail.com, stefan@marxist.se, JackMorrison1@gmail.com, 18548@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 23 15:05:59 2022 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 1nMsHH-0009XR-0s for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 15:05:59 +0100 Original-Received: from localhost ([::1]:44350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMsHG-0005ch-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 09:05:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMsBm-0008Td-4g for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 09:00:19 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMsBX-0006yd-Cy for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 09:00:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMsBX-00054U-75 for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 09:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Feb 2022 14:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18548 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18548-submit@debbugs.gnu.org id=B18548.164562474619399 (code B ref 18548); Wed, 23 Feb 2022 14:00:03 +0000 Original-Received: (at 18548) by debbugs.gnu.org; 23 Feb 2022 13:59:06 +0000 Original-Received: from localhost ([127.0.0.1]:44391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMsAb-00052o-KT for submit@debbugs.gnu.org; Wed, 23 Feb 2022 08:59:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMsAP-000528-G1 for 18548@debbugs.gnu.org; Wed, 23 Feb 2022 08:59:04 -0500 Original-Received: from [2001:470:142:3::e] (port=51872 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMsAJ-0006kw-OF; Wed, 23 Feb 2022 08:58:47 -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=aIdABbzBh8w4TZqsF6SfPrgjYWLQEe3/nb2UfBZaj6E=; b=SzW5AUCXAJiXtFFn8/19 yglNaPTCHfvZZSGOkvfOo1BQ00ejpDmNkPZF4d4KfDQn9Vi1e7+kn+a8vnAzNSqW56hUD22NXBrUL yu/bVW/VUp5yKgQsnF5SxTIcobnPKgrHAMJk2HqxUVAp71LbG/uWcHfs5iASvJDPfTJkg0zJslHF9 AHf7RQmMlaY+/U2AmgiomuGa5EA7jWX6kzG4nvoIjJtT2MBnh4d9JCGleAsN/zzXK1nY3H3VU5rzu qDacTPaP2XRSvuC2g+nXCQigWwC08GNyzngoT/0DJfR7/u12sJuQkLEmfcpPbcAtLRQsaZWzU1E5K GCqF6v+uMSwL8w==; Original-Received: from [87.69.77.57] (port=3973 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMs9w-0002rG-F5; Wed, 23 Feb 2022 08:58:34 -0500 In-Reply-To: <87ee3t7mbt.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 23 Feb 2022 14:18:46 +0100) 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:227514 Archived-At: > From: Lars Ingebrigtsen > Date: Wed, 23 Feb 2022 14:18:46 +0100 > Cc: Kip Coul , Stefan Kangas , > Jack Morrison , 18548@debbugs.gnu.org > > So I don't know whether anything can or should be done in this case. I > think that (perhaps) a reasonable default would be to remove that > mapping -- whitespace-mode (by default) marks TAB characters anyway with > a face, so having a ยป in addition is somewhat superfluous. On the other > hand, it's been like this forever, so perhaps we should just document > the quirk instead. Or add a defcustom to allow for easier toggling, and > the defcustom would then also act as documentation for this. > > Any opinions? I think the only way to fix this (and I agree that it's a marginal use case) is to introduce some special syntax into display-table notation, and then teach the display engine to ignore the TAB when whatever is before it in the display-table entry already ends at a tab stop, and the display-table entry has that special syntax. Not sure if it's worth the hassle. In any case, most of the implementation should be in the display engine, because that's where the TAB display is implemented in Emacs.