GNU bug report logs - #11879
24.1.50; delete-trailing-whitespace now removes empty lines at end of file

Previous Next

Package: emacs;

Reported by: Matt Arsenault <arsenm2 <at> gmail.com>

Date: Sun, 8 Jul 2012 16:24:01 UTC

Severity: normal

Found in version 24.1.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 11879 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Sven Joachim <svenjoac <at> gmx.de>
Cc: 11879 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> IRO.UMontreal.CA>,
	Matt Arsenault <arsenm2 <at> gmail.com>, Juanma Barranquero <lekktu <at> gmail.com>
Subject: Re: bug#11879: 24.1.50;
	delete-trailing-whitespace now removes empty lines at end of file
Date: Sat, 28 Jul 2012 18:41:00 +0800
Sven Joachim <svenjoac <at> gmx.de> writes:

>> And, while there is a change, I haven't yet seen a clear argument that
>> this change is a problem.
>
> There may be cases where an empty line at the end is actually necessary.
> For instance, I occasionally edit chess game files in PGN¹ format, and
> removing the trailing empty line breaks the nice feature that several of
> such files can be combined with cat(1) to produce a larger one.

I think this is a fair point, so I added `delete-trailing-lines' as an
option defaulting to t.  Major modes which need to preserve trailing
newlines can now set that to nil, (I don't think there are any such
modes in Emacs), or users can customize it.




This bug report was last modified 13 years and 15 days ago.

Previous Next


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