* bug#7497: problem about auto adding newline at the end of file
@ 2010-11-27 10:53 李银璠
2010-11-27 12:31 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: 李银璠 @ 2010-11-27 10:53 UTC (permalink / raw
To: 7497
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 796 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#7497: problem about auto adding newline at the end of file
2010-11-27 10:53 bug#7497: problem about auto adding newline at the end of file 李银璠
@ 2010-11-27 12:31 ` Eli Zaretskii
2010-12-03 6:27 ` 李银璠
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2010-11-27 12:31 UTC (permalink / raw
To: 李银璠; +Cc: 7497
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#7497: problem about auto adding newline at the end of file
2010-11-27 12:31 ` Eli Zaretskii
@ 2010-12-03 6:27 ` 李银璠
2010-12-03 10:47 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: 李银璠 @ 2010-12-03 6:27 UTC (permalink / raw
To: Eli Zaretskii; +Cc: 7497
[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]
Dear sir/lady,
I have fixed my problem. It turned out to be no bug.
It was a major mode that use mode-require-final-newline. Thank you very much
for your instructions. I used almost one week to understand the instructions
(I was quite new to emacs).
Sorry if I wasted your time.
On Sat, Nov 27, 2010 at 8:31 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > 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.
>
[-- Attachment #2: Type: text/html, Size: 2146 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#7497: problem about auto adding newline at the end of file
2010-12-03 6:27 ` 李银璠
@ 2010-12-03 10:47 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2010-12-03 10:47 UTC (permalink / raw
To: 李银璠; +Cc: 7497-done
> Date: Fri, 3 Dec 2010 14:27:36 +0800
> From: 李银璠 <linfeixb27@gmail.com>
> Cc: 7497@debbugs.gnu.org
>
> Dear sir/lady,
> I have fixed my problem. It turned out to be no bug.
> It was a major mode that use mode-require-final-newline. Thank you very much
> for your instructions. I used almost one week to understand the instructions
> (I was quite new to emacs).
Thanks, I'm closing the bug report.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-03 10:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-27 10:53 bug#7497: problem about auto adding newline at the end of file 李银璠
2010-11-27 12:31 ` Eli Zaretskii
2010-12-03 6:27 ` 李银璠
2010-12-03 10:47 ` Eli Zaretskii
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.