From unknown Mon Aug 18 00:05:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7497 <7497@debbugs.gnu.org> To: bug#7497 <7497@debbugs.gnu.org> Subject: Status: problem about auto adding newline at the end of file Reply-To: bug#7497 <7497@debbugs.gnu.org> Date: Mon, 18 Aug 2025 07:05:35 +0000 retitle 7497 problem about auto adding newline at the end of file reassign 7497 emacs submitter 7497 =E6=9D=8E=E9=93=B6=E7=92=A0 severity 7497 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 05:49:15 2010 Received: (at submit) by debbugs.gnu.org; 27 Nov 2010 10:49:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMILC-0002e1-T4 for submit@debbugs.gnu.org; Sat, 27 Nov 2010 05:49:15 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMIKT-0002cU-2G for submit@debbugs.gnu.org; Sat, 27 Nov 2010 05:48:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMIPU-0005q0-SX for submit@debbugs.gnu.org; Sat, 27 Nov 2010 05:53:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:33274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMIPU-0005pv-Q9 for submit@debbugs.gnu.org; Sat, 27 Nov 2010 05:53:40 -0500 Received: from [140.186.70.92] (port=55694 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMIPJ-0001ZA-Qr for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2010 05:53:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMIPB-0005lH-4b for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2010 05:53:29 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:45073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMIPA-0005l5-Sx for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2010 05:53:21 -0500 Received: by wyb42 with SMTP id 42so10662771wyb.0 for ; Sat, 27 Nov 2010 02:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=njav7vp8KASTCJ3hpWeeEoEpGo6S2Zl4soWZE7B36+A=; b=ciEK7qFTsPJ4e4ZdL9ZixVFvoTgw4GZjNqU/rN38rrHJvD7brGdbxKwtHcEI8IIfc9 SLzfEB1jldmOXbjfwhVN4+5zgy3kZapqck2vYdlXmNioTanr3nHOIo4l1y8UpIIvexH3 Ie2xgVoXb5ALV96kVpO2nNb+Gt1Ip5oJgViRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gyH+NZH5IuHk4oxt7ByVKiXZdU4c4qNYLyQbryI87FMu7EJniF0vspwA1xkwnTROLf ZDovloyErjnLS71xqNIWiwXXzPW6HVS/XzcLPADRfD//BCUiOkp7xpOM7upoIyDLF7dL GI8I6vKBUi7hXeF/3WQtgUnrNeA8DLgeCZi08= MIME-Version: 1.0 Received: by 10.227.141.71 with SMTP id l7mr3546079wbu.68.1290855197751; Sat, 27 Nov 2010 02:53:17 -0800 (PST) Received: by 10.227.146.69 with HTTP; Sat, 27 Nov 2010 02:53:17 -0800 (PST) Date: Sat, 27 Nov 2010 18:53:17 +0800 Message-ID: Subject: problem about auto adding newline at the end of file From: =?UTF-8?B?5p2O6ZO255Kg?= To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=0016364d2ac184bae7049606a5ce X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 27 Nov 2010 05:49:13 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --0016364d2ac184bae7049606a5ce Content-Type: text/plain; charset=ISO-8859-1 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 --0016364d2ac184bae7049606a5ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable My emacs does not behave as stated in the documentation, http://www.gnu.org/software/emacs/manual/html_node/emacs/C= ustomize-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 wit= h 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
--0016364d2ac184bae7049606a5ce-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 07:24:37 2010 Received: (at 7497) by debbugs.gnu.org; 27 Nov 2010 12:24:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMJpU-0004jh-QQ for submit@debbugs.gnu.org; Sat, 27 Nov 2010 07:24:37 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMJpR-0004jT-V3 for 7497@debbugs.gnu.org; Sat, 27 Nov 2010 07:24:35 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LCJ00K00MGS2Q00@a-mtaout22.012.net.il> for 7497@debbugs.gnu.org; Sat, 27 Nov 2010 14:29:30 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.63.39]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LCJ00JQYMP5W740@a-mtaout22.012.net.il>; Sat, 27 Nov 2010 14:29:30 +0200 (IST) Date: Sat, 27 Nov 2010 14:31:38 +0200 From: Eli Zaretskii Subject: Re: bug#7497: problem about auto adding newline at the end of file In-reply-to: To: =?UTF-8?Q?=E6=9D=8E=E9=93=B6=E7=92=A0?= Message-id: <83mxov54np.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7497 Cc: 7497@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Sat, 27 Nov 2010 18:53:17 +0800 > From: =E6=9D=8E=E9=93=B6=E7=92=A0 > Cc:=20 >=20 > 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 > . >=20 > 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 ende= d 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) >=20 > 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 mod= e which uses mode-require-final-newline to set the buffer-local value o= f 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 01:21:56 2010 Received: (at 7497) by debbugs.gnu.org; 3 Dec 2010 06:21:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1POP1o-0007rG-A1 for submit@debbugs.gnu.org; Fri, 03 Dec 2010 01:21:56 -0500 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1POP1m-0007qv-0k for 7497@debbugs.gnu.org; Fri, 03 Dec 2010 01:21:54 -0500 Received: by wyf23 with SMTP id 23so8337200wyf.3 for <7497@debbugs.gnu.org>; Thu, 02 Dec 2010 22:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=aho3+7SPor6QGZgemIoLbcuwUaMJeyo505Ce8Ub+Tww=; b=qmvNZ8Hc4JI4DoDnKRjHQ5cHZOJOUdnbLkL99MdA6IuhudPUKqWzbswpNW4pm4JLmj 5IEnZwAQbHnETEPF84pgSSnNCBejyxgbZg0bYthrIMU8Q9w3c/IyRj/QDI/5jtWvHMkZ XDg+Y+fSbyQD+CY1xmL7RMjLePESBm+VqWmUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=h4jL62ei70jeY0v6KKlrjs27qCmi1xGq2X8I17EeOZmNwLFTitpqPVUzCcq/f3pjwE xj5IdIj+DfzLFr6IPjAd1Fw9SY1jmMcDGvUZZb840D8hBLwf/onP9kZcJrRoqDxyOj1a NnNvmovWOWvbA0jXg2PNcg4/AqBrknP8OimIk= MIME-Version: 1.0 Received: by 10.227.196.7 with SMTP id ee7mr1407628wbb.10.1291357656931; Thu, 02 Dec 2010 22:27:36 -0800 (PST) Received: by 10.227.146.69 with HTTP; Thu, 2 Dec 2010 22:27:36 -0800 (PST) In-Reply-To: <83mxov54np.fsf@gnu.org> References: <83mxov54np.fsf@gnu.org> Date: Fri, 3 Dec 2010 14:27:36 +0800 Message-ID: Subject: Re: bug#7497: problem about auto adding newline at the end of file From: =?UTF-8?B?5p2O6ZO255Kg?= To: Eli Zaretskii Content-Type: multipart/alternative; boundary=485b3973e9d76b5d4b04967ba2ec X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 7497 Cc: 7497@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) --485b3973e9d76b5d4b04967ba2ec Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 muc= h for your instructions. I used almost one week to understand the instruction= s (I was quite new to emacs). Sorry if I wasted your time. On Sat, Nov 27, 2010 at 8:31 PM, Eli Zaretskii wrote: > > Date: Sat, 27 Nov 2010 18:53:17 +0800 > > From: =E6=9D=8E=E9=93=B6=E7=92=A0 > > Cc: > > > > My emacs does not behave as stated in the documentation, > > > http://www.gnu.org/software/emacs/manual/html_node/emacs/Customize-Save.h= tml#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 wi= th > > 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. > --485b3973e9d76b5d4b04967ba2ec Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 muc= h for your instructions. I used almost one week to understand the instructi= ons (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: =E6=9D=8E=E9=93=B6=E7=92=A0 <linfeixb27@gmail.com>
> Cc:
>
> My emacs does not behave as stated in the documentation,
> http://www.gnu.org/soft= ware/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 w= ith
> 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. =C2=A0Please 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. =C2=A0In that case, you may wish to customize
mode-require-final-newline, or maybe reset require-final-newline in a
mode hook.

--485b3973e9d76b5d4b04967ba2ec-- From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 05:41:40 2010 Received: (at 7497-done) by debbugs.gnu.org; 3 Dec 2010 10:41:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1POT59-0000aE-VM for submit@debbugs.gnu.org; Fri, 03 Dec 2010 05:41:40 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1POT52-0000Zv-Ng for 7497-done@debbugs.gnu.org; Fri, 03 Dec 2010 05:41:34 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LCU00I00LKNXH00@a-mtaout20.012.net.il> for 7497-done@debbugs.gnu.org; Fri, 03 Dec 2010 12:47:15 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.69.203]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LCU00IIBLYHYY00@a-mtaout20.012.net.il>; Fri, 03 Dec 2010 12:47:11 +0200 (IST) Date: Fri, 03 Dec 2010 12:47:10 +0200 From: Eli Zaretskii Subject: Re: bug#7497: problem about auto adding newline at the end of file In-reply-to: To: =?UTF-8?B?5p2O6ZO255Kg?= Message-id: <837hfr8769.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <83mxov54np.fsf@gnu.org> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 7497-done Cc: 7497-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Fri, 3 Dec 2010 14:27:36 +0800 > From: =E6=9D=8E=E9=93=B6=E7=92=A0 > Cc: 7497@debbugs.gnu.org >=20 > 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 ins= tructions > (I was quite new to emacs). Thanks, I'm closing the bug report. From unknown Mon Aug 18 00:05:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 31 Dec 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator