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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jake <jforst.mailman <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78579: closed (30.0.92; Global variant of delete-trailing-whitespace-mode)
Date: Sun, 25 May 2025 10:08:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 25 May 2025 19:37:29 +0930
with message-id <CAJqVjv_j=Mh+z20sL8woOo8TWFS9G3du7NMvhpf5OLrOjfZQ5Q <at> mail.gmail.com>
and subject line Re: bug#78579: 30.0.92; Global variant of delete-trailing-whitespace-mode
has caused the debbugs.gnu.org bug report #78579,
regarding 30.0.92; Global variant of delete-trailing-whitespace-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
78579: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78579
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jake <jforst.mailman <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: 30.0.92; Global variant of delete-trailing-whitespace-mode
Date: Sat, 24 May 2025 13:48:44 +0000
[Message part 3 (text/plain, inline)]
`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)

Thanks
Jake
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Jake <jforst.mailman <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, 78579-done <at> debbugs.gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#78579: 30.0.92;
 Global variant of delete-trailing-whitespace-mode
Date: Sun, 25 May 2025 19:37:29 +0930
[Message part 6 (text/plain, inline)]
Thanks for explaining.  Closing

On Sun, 25 May 2025 at 1:20 am, Eli Zaretskii <eliz <at> gnu.org> wrote:

> > Cc: 78579 <at> debbugs.gnu.org
> > Date: Sat, 24 May 2025 11:14:24 -0400
> > From:  Stefan Monnier via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >
> > > `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.
>
> I share the fears expressed by Stefan.  I think that such a global
> mode would be more dangerous than it's useful.  After all, it's easy
> to add the activation of the local minor mode to mode-hook of any
> modes one wants.
>
[Message part 7 (text/html, inline)]

This bug report was last modified 22 days ago.

Previous Next


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