GNU bug report logs - #78201
Suggest show-trailing-whitespace customize option "unless special"

Previous Next

Package: emacs;

Reported by: Joel Reicher <joel.reicher <at> gmail.com>

Date: Fri, 2 May 2025 02:10:01 UTC

Severity: normal

Full log


Message #11 received at 78201 <at> debbugs.gnu.org (full text, mbox):

From: Joel Reicher <joel.reicher <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78201 <at> debbugs.gnu.org
Subject: Re: bug#78201: Suggest show-trailing-whitespace customize option
 "unless special"
Date: Thu, 29 May 2025 20:27:45 +1000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> A global value of t for show-trailing-whitespace is often not 
>> useful as some special modes insert trailing whitespace that 
>> can't  (by definition) be edited.
>
> Those modes are quite rare.  So I suggest instead to submit 
> patches to those rare modes to customize the buffer-local value 
> of show-trailing-whitespace in buffers under those modes.

While I'm not disagreeing with this, I think the existence of code 
such as

(defcustom show-paren-predicate '(not (derived-mode 
. special-mode))...

indicates there is at least a precedent for the approach.

Also (and this might warrant a separate bug report) I think there 
is a discrepancy between being derived from special and having the 
special mode class.

Thanks and regards,

      - Joel




This bug report was last modified 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.