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

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

Re: delete-trailing-whitespace behavior change?


From: Kaushal Modi
Subject: Re: delete-trailing-whitespace behavior change?
Date: Wed, 12 Dec 2018 12:47:18 -0500

On Wed, Dec 12, 2018 at 7:25 AM Skip Montanaro <skip.montanaro@gmail.com> wrote:
> Recently, I've noticed that the last newline of files seems to be deleted.
> Not always, but pretty frequently.

I don't know how this would cause randomness in deleting the final
newline, but do you have the variable require-final-newline set to nil
(default) by any chance.

If it is nil, a final newline is not auto-inserted. But if set to t,
that final newline is auto inserted on saving a file.



reply via email to

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