unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* delete-trailing-whitespace behavior change?
@ 2018-12-12 12:24 Skip Montanaro
  2018-12-12 17:47 ` Kaushal Modi
  0 siblings, 1 reply; 6+ messages in thread
From: Skip Montanaro @ 2018-12-12 12:24 UTC (permalink / raw)
  To: Help GNU Emacs

I've defined this hook in ~/.emacs for ages (a decade or so, I suspect):

(add-hook 'before-save-hook 'delete-trailing-whitespace)

Recently, I've noticed that the last newline of files seems to be deleted.
Not always, but pretty frequently. I'm running 25.2.2 at home and 25.3.2 at
work. I think I switched from 24 to 25 in the past few months. I can't seem
to quickly lay my hands on Emacs 24 without going through a
download/install cycle, but I wonder if delete-trailing-whitespace might
have changed between 24 and 25?

Any insight would be appreciated...

Skip Montanaro


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.5630.1544617495.1284.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2018-12-13  3:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-12 12:24 delete-trailing-whitespace behavior change? Skip Montanaro
2018-12-12 17:47 ` Kaushal Modi
     [not found] <mailman.5630.1544617495.1284.help-gnu-emacs@gnu.org>
2018-12-12 15:40 ` Loris Bennett
2018-12-12 17:34   ` Skip Montanaro
2018-12-12 21:26   ` Javier
2018-12-13  3:51     ` Skip Montanaro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).