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: How to make emacs *not* add a newline at the end of the file? Date: Wed, 31 Dec 2008 17:56:38 GMT Organization: Sonera Customer Message-ID: 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 1230754688 2575 80.91.229.12 (31 Dec 2008 20:18:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 20:18:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 31 21:19:16 2008 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 1LI7X7-0006QT-MR for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 21:19:13 +0100 Original-Received: from localhost ([127.0.0.1]:57965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI7Vt-0004PT-On for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 15:17:57 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!newsfeed1.swip.net!newsfeed1.funet.fi!newsfeeds.funet.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 X-Enigmail-Version: 0.95.7 Original-Lines: 17 Original-NNTP-Posting-Host: 88.195.136.151 Original-X-Complaints-To: abuse@inet.fi Original-X-Trace: read4.inet.fi 1230746198 88.195.136.151 (Wed, 31 Dec 2008 19:56:38 EET) Original-NNTP-Posting-Date: Wed, 31 Dec 2008 19:56:38 EET Original-Xref: news.stanford.edu gnu.emacs.help:165669 X-Mailman-Approved-At: Wed, 31 Dec 2008 15:16:21 -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:61004 Archived-At: From some version forward emacs has been automatically adding a newline at the end of the file if there wasn't one when saving the file. I don't need this feature, and in a few cases it actually hinders me (ie. in the few cases where I *really* don't want that newline as the last character of the file). I have always liked emacs because it doesn't add any extraneous characters which I haven't specifically told it to add, like so many other text editors do, which gives me much more precise control over the contents of the file. This new feature is consequently a bit annoying. How can the feature be turned off? Another related question: Is there an easy way of making emacs visually show the end of the file? (Some other text editors have such a feature, eg. by showing a special symbol after the last character in the file, and it would be useful.)