GNU bug report logs -
#78201
Suggest show-trailing-whitespace customize option "unless special"
Previous Next
To reply to this bug, email your comments to 78201 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#78201
; Package
emacs
.
(Fri, 02 May 2025 02:10:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Joel Reicher <joel.reicher <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 02 May 2025 02:10:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
When users want something like this they probably "really mean" to
show trailing whitespace in all and only editable modes,
i.e. non-special ones.
I've had pretty good success with
(add-hook 'change-major-mode-after-body-hook (lambda () (if (not
(eq (get major-mode 'mode-class) 'special)) (setq
show-trailing-whitespace t))))
which also allows an explicit exception for diff mode (as
mentioned in bug#75993 it was missing the special mode class).
Thanks and regards,
- Joel
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#78201
; Package
emacs
.
(Fri, 02 May 2025 06:32:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 78201 <at> debbugs.gnu.org (full text, mbox):
> From: Joel Reicher <joel.reicher <at> gmail.com>
> Date: Fri, 02 May 2025 12:09:03 +1000
>
> 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.
This bug report was last modified 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.