GNU bug report logs - #78579
30.0.92; Global variant of delete-trailing-whitespace-mode

Previous Next

Package: emacs;

Reported by: Jake <jforst.mailman <at> gmail.com>

Date: Sat, 24 May 2025 13:50:01 UTC

Severity: normal

Found in version 30.0.92

Done: Jake <jforst.mailman <at> gmail.com>

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jake <jforst.mailman <at> gmail.com>
Cc: 78579 <at> debbugs.gnu.org
Subject: Re: 30.0.92; Global variant of delete-trailing-whitespace-mode
Date: Sat, 24 May 2025 11:14:24 -0400
> `delete-trailing-whitespace-mode` was introduced in commit 8a19c249f81.
> Should there also be a `global-delete-trailing-whitespace-mode`?
> This would allow
>   (global-delete-trailing-whitespace-mode 1)
> and turning it off in an individual buffer with
>   (delete-trailing-whitespace-mode -1)

To define such a mode, we'll need to know when to enable it and when
not: I'd be surprised if adding `delete-trailing-whitespace` globally
to `before-save-hook` doesn't cause problems in various circumstances.

I don't have enough experience with that, so I'll let others decide if
and how to do it.


        Stefan





This bug report was last modified 21 days ago.

Previous Next


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