From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=E6=9D=8E=E9=93=B6=E7=92=A0?= Newsgroups: gmane.emacs.bugs Subject: bug#7497: problem about auto adding newline at the end of file Date: Sat, 27 Nov 2010 18:53:17 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364d2ac184bae7049606a5ce X-Trace: dough.gmane.org 1290856504 6788 80.91.229.12 (27 Nov 2010 11:15:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Nov 2010 11:15:04 +0000 (UTC) To: 7497@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 27 12:15:00 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PMIk6-0004ir-NB for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Nov 2010 12:14:59 +0100 Original-Received: from localhost ([127.0.0.1]:60177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMIk6-0004QR-38 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Nov 2010 06:14:58 -0500 Original-Received: from [140.186.70.92] (port=53695 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMIk0-0004QM-5R for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2010 06:14:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMIjz-0001Wf-7N for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2010 06:14:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMIjz-0001WZ-5Q for bug-gnu-emacs@gnu.org; Sat, 27 Nov 2010 06:14:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PMILz-0002f7-JH; Sat, 27 Nov 2010 05:50:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E6=9D=8E=E9=93=B6=E7=92=A0?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Nov 2010 10:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7497 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129085495510172 (code B ref -1); Sat, 27 Nov 2010 10:50:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Nov 2010 10:49:15 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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= Original-Received: by 10.227.141.71 with SMTP id l7mr3546079wbu.68.1290855197751; Sat, 27 Nov 2010 02:53:17 -0800 (PST) Original-Received: by 10.227.146.69 with HTTP; Sat, 27 Nov 2010 02:53:17 -0800 (PST) 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-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 Resent-Date: Sat, 27 Nov 2010 05:50:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41923 Archived-At: --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--