From: Juha Nieminen <nospam@thanks.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: How to make emacs *not* add a newline at the end of the file?
Date: Sat, 03 Jan 2009 11:41:29 GMT [thread overview]
Message-ID: <J9I7l.52$7G.16@read4.inet.fi> (raw)
In-Reply-To: <mailman.3738.1230869315.26697.help-gnu-emacs@gnu.org>
Kevin Rodgers wrote:
> Juha Nieminen wrote:
>> Charles Sebold wrote:
>>> Also see the value of the variable mode-require-final-newline.
>>
>> That did what I wanted. Thanks.
>
> Just curious: What modes set require-final-newline, and how does that
> hinder you?
From what I tested, at least editing .txt, .c and .cc files did that.
It hinders me in the few cases where I really *don't* want that
newline at the end. I have always liked emacs exactly because it doesn't
add (or remove) *anything* I don't explicitly instruct it to, no matter
which file I edit. This seems to be more an exception than a rule with
text editors (especially in Windows). I don't need the text editor to
"think for me" in this case.
next prev parent reply other threads:[~2009-01-03 11:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-31 17:56 How to make emacs *not* add a newline at the end of the file? Juha Nieminen
2008-12-31 19:14 ` 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 [this message]
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='J9I7l.52$7G.16@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).