From: Eli Zaretskii <eliz@gnu.org>
To: 李银璠 <linfeixb27@gmail.com>
Cc: 7497@debbugs.gnu.org
Subject: bug#7497: problem about auto adding newline at the end of file
Date: Sat, 27 Nov 2010 14:31:38 +0200 [thread overview]
Message-ID: <83mxov54np.fsf@gnu.org> (raw)
In-Reply-To: <AANLkTiksgPcB5Cr34qNJeog7t1x0B2Sc8W60GVnxi-7N@mail.gmail.com>
> Date: Sat, 27 Nov 2010 18:53:17 +0800
> From: 李银璠 <linfeixb27@gmail.com>
> Cc:
>
> My emacs does not behave as stated in the documentation,
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Customize-Save.html#Customize-Save
> .
>
> In the documentation, it is said that, if require-final-newline is set to
> nil, no changes would be adapted to my files, leaving them not ended with
> newline (0x0d0a).
> My emacs, on the other hand, always adds newline at the end of file,
> automatically, even when I add (setq-default require-final-newline nil); or
> (setq require-final-newline nil);to .emacs. (I tried them both)
>
> I don't know if it is a bug, or it is caused by my wrong operation. I'm
> using Ubuntu 10.10, emacs 23.1.1
I cannot reproduce this in Emacs 23.1. Please show a complete recipe,
starting with "emacs -Q", to reproduce this problem.
One possibility is that you see this in a file that turns a major mode
which uses mode-require-final-newline to set the buffer-local value of
require-final-newline. In that case, you may wish to customize
mode-require-final-newline, or maybe reset require-final-newline in a
mode hook.
next prev parent reply other threads:[~2010-11-27 12:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-27 10:53 bug#7497: problem about auto adding newline at the end of file 李银璠
2010-11-27 12:31 ` Eli Zaretskii [this message]
2010-12-03 6:27 ` 李银璠
2010-12-03 10:47 ` Eli Zaretskii
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=83mxov54np.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=7497@debbugs.gnu.org \
--cc=linfeixb27@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.