[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline
From: |
Stefan Kangas |
Subject: |
bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline |
Date: |
Thu, 20 Jun 2024 07:55:19 +0000 |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Robert Pluim <rpluim@gmail.com>
>> Cc: Andrea Corallo <acorallo@gnu.org>, 71499@debbugs.gnu.org,
>> stefankangas@gmail.com, bkhl@elektrubadur.se
>> Date: Fri, 14 Jun 2024 14:23:17 +0200
>>
>> >>>>> On Thu, 13 Jun 2024 11:30:51 +0300, Eli Zaretskii <eliz@gnu.org> said:
>> >> I'm as well for having the patch in, but I guess would be safer in 31
>> so
>> >> we have plenty of time to react if needed.
>>
>> Eli> OK, thanks. I will then install after the branch is cut.
>>
>> Eli> Meanwhile, Björn, I have a few comments to the patch:
>>
>> Eli> . it needs a NEWS entry announcing the new feature
>> Eli> . is there any reason your code to handle the missing newline is
>> not
>> Eli> identical to what the implementation of require-final-newline
>> Eli> does?
>>
>> Iʼm going to chime in and say that, even though I highlight missing
>> newlines at eob, I donʼt normally set `require-final-newline' to t,
>> because of various reasons involving collaboration with others. So Iʼd
>> have to turn this off once it goes in.
Could you explain why you'd need to turn it off?
Do you usually use `whitespace-cleanup` on files where you collaborate
with others, but then you specifically don't want to ever touch newlines
at eob?
> Maybe this feature should take a hint from require-final-newline?
To my mind, the main use case of this feature would be users that don't
want to set `require-final-newline`, instead preferring to make such
fixes manually.
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Björn Lindström, 2024/06/12
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Björn Lindström, 2024/06/12
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Eli Zaretskii, 2024/06/12
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Björn Lindström, 2024/06/12
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Eli Zaretskii, 2024/06/12
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Stefan Kangas, 2024/06/12
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Andrea Corallo, 2024/06/13
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Eli Zaretskii, 2024/06/13
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Robert Pluim, 2024/06/14
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Eli Zaretskii, 2024/06/14
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline,
Stefan Kangas <=
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Robert Pluim, 2024/06/20
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Stefan Kangas, 2024/06/20
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Robert Pluim, 2024/06/20
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Stefan Kangas, 2024/06/20
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Eli Zaretskii, 2024/06/27
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Björn Lindström, 2024/06/29
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Eli Zaretskii, 2024/06/29