[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline
From: |
Björn Lindström |
Subject: |
bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline |
Date: |
Wed, 12 Jun 2024 07:21:04 +0200 |
User-agent: |
Cyrus-JMAP/3.11.0-alpha0-515-g87b2bad5a-fm-20240604.001-g87b2bad5 |
On Tue, Jun 11, 2024, at 20:16, Björn Lindström wrote:
> Hello,
>
> attaching patch to make the whitespace-cleanup and
> whitespace-cleanup-region functions add a final newline to a file if
> whitespace-style contains `missing-newline-at-eof
>
> I'm aware this somewhat replicates what setting `require-final-newline
> would do, but I think since whitespace.el with this configuration
> highlights this as an error, it should also clean it up when asked.
>
> Best wishes,
> Björn
> Attachments:
> * 0001-Make-whitespace.el-cleanup-add-missing-final-newline.patch
Sorry, somehow messed up the first patch I sent, now attaching a corrected one.
Attaching the correct one here.
Best wishes,
Björn
0001-Make-whitespace.el-cleanup-add-missing-final-newline-2.patch
Description: Text Data
- 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 <=
- 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, 2024/06/20
- bug#71499: [PATCH] Make whitespace.el cleanup add missing final newline, Robert Pluim, 2024/06/20