From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juha Nieminen Newsgroups: gmane.emacs.help 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 Organization: Sonera Customer Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231013398 13432 80.91.229.12 (3 Jan 2009 20:09:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 20:09:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 03 21:11:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LJCpw-0005Vm-OK for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jan 2009 21:11:09 +0100 Original-Received: from localhost ([127.0.0.1]:47119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJCoh-0003km-E5 for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jan 2009 15:09:51 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!feeder2.news.saunalahti.fi!feeder1.news.saunalahti.fi!nntp.inet.fi!central1.inet.fi!inet.fi!read4.inet.fi.POSTED!53ab2750!not-for-mail User-Agent: Thunderbird 2.0.0.18 (X11/20081112) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-Enigmail-Version: 0.95.7 Original-Lines: 18 Original-NNTP-Posting-Host: 88.195.136.151 Original-X-Complaints-To: abuse@inet.fi Original-X-Trace: read4.inet.fi 1230982889 88.195.136.151 (Sat, 03 Jan 2009 13:41:29 EET) Original-NNTP-Posting-Date: Sat, 03 Jan 2009 13:41:29 EET Original-Xref: news.stanford.edu gnu.emacs.help:165701 X-Mailman-Approved-At: Sat, 03 Jan 2009 15:09:05 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61040 Archived-At: 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.