[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: whitespace-mode deactivated at end of line
From: |
Emanuel Berg |
Subject: |
Re: whitespace-mode deactivated at end of line |
Date: |
Sun, 12 Jun 2022 10:58:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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.
Sounds more like someone falling asleep with the head on the
keyboard ... which can be really dangerous BTW.
> If you do want this automatic cleanup to be performed
> unconditionally, customize the option whitespace-cleanup to
> do that.
Okay, yes, better than the semi-manual method of having
a function in a hook, however I don't have that?
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+
Version 3.24.24, cairo version 1.16.0) of 2022-05-28
[commit 79ae40c8e4dac5898d68c92f26f625ac400b960c]
--
underground experts united
https://dataswamp.org/~incal