From: Juha Nieminen <nospam@thanks.invalid>
To: help-gnu-emacs@gnu.org
Subject: How to make emacs *not* add a newline at the end of the file?
Date: Wed, 31 Dec 2008 17:56:38 GMT [thread overview]
Message-ID: <qnO6l.211$wo3.159@read4.inet.fi> (raw)
From some version forward emacs has been automatically adding a
newline at the end of the file if there wasn't one when saving the file.
I don't need this feature, and in a few cases it actually hinders me
(ie. in the few cases where I *really* don't want that newline as the
last character of the file). I have always liked emacs because it
doesn't add any extraneous characters which I haven't specifically told
it to add, like so many other text editors do, which gives me much more
precise control over the contents of the file. This new feature is
consequently a bit annoying.
How can the feature be turned off?
Another related question: Is there an easy way of making emacs
visually show the end of the file? (Some other text editors have such a
feature, eg. by showing a special symbol after the last character in the
file, and it would be useful.)
next reply other threads:[~2008-12-31 17:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-31 17:56 Juha Nieminen [this message]
2008-12-31 19:14 ` How to make emacs *not* add a newline at the end of the file? Charles Sebold
2008-12-31 20:27 ` Allan Gottlieb
2008-12-31 23:11 ` Juha Nieminen
2009-01-02 4:08 ` Kevin Rodgers
[not found] ` <mailman.3738.1230869315.26697.help-gnu-emacs@gnu.org>
2009-01-03 11:41 ` Juha Nieminen
2008-12-31 19:46 ` Teemu Likonen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='qnO6l.211$wo3.159@read4.inet.fi' \
--to=nospam@thanks.invalid \
--cc=help-gnu-emacs@gnu.org \
/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.
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).