From: Kaushal Modi <kaushal.modi@gmail.com>
To: skip.montanaro@gmail.com
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: delete-trailing-whitespace behavior change?
Date: Wed, 12 Dec 2018 12:47:18 -0500 [thread overview]
Message-ID: <CAFyQvY1bYJPFC43zcd=T6FvEvCjgnn_iJCKQkrEv-xLgLD0Qbw@mail.gmail.com> (raw)
In-Reply-To: <CANc-5UyrtgrkLdyunKXkJy4y3aFa=P7E7sCqUGbUSpURv45maw@mail.gmail.com>
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.
next prev parent reply other threads:[~2018-12-12 17:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-12 12:24 delete-trailing-whitespace behavior change? Skip Montanaro
2018-12-12 17:47 ` Kaushal Modi [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyQvY1bYJPFC43zcd=T6FvEvCjgnn_iJCKQkrEv-xLgLD0Qbw@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=skip.montanaro@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.