bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11879: 24.1.50; delete-trailing-whitespace now removes empty lines a


From: Chong Yidong
Subject: 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Sven Joachim <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]