unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: whitespace-mode deactivated at end of line
Date: Sat, 11 Jun 2022 11:15:53 +0300	[thread overview]
Message-ID: <83y1y3y5s6.fsf@gnu.org> (raw)
In-Reply-To: <877d5nu60y.fsf@dataswamp.org> (message from Emanuel Berg on Sat,  11 Jun 2022 07:24:13 +0200)

> From: Emanuel Berg <incal@dataswamp.org>
> Date: Sat, 11 Jun 2022 07:24:13 +0200
> 
> Eli Zaretskii wrote:
> 
> > The red background that highlights trailing whitespace
> 
> Also why isn't that removed automatically on save?

Because it isn't any business of Emacs to second-guess the user's
intentions.  The user could, for example, be saving a partially
written file, or have any other valid reason for keeping the trailing
whitespace.

If you do want this automatic cleanup to be performed unconditionally,
customize the option whitespace-cleanup to do that.



  reply	other threads:[~2022-06-11  8:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-09 18:22 whitespace-mode deactivated at end of line goncholden via Users list for the GNU Emacs text editor
2022-06-09 19:31 ` Eli Zaretskii
2022-06-11  3:03   ` goncholden
2022-06-11  5:24   ` Emanuel Berg
2022-06-11  8:15     ` Eli Zaretskii [this message]
2022-06-11  8:34       ` goncholden
2022-06-11  9:07       ` Arash Esbati
2022-06-11  9:58         ` Eli Zaretskii
2022-06-12  8:58       ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y1y3y5s6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).