From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Charles Sebold Newsgroups: gmane.emacs.help Subject: Re: How to make emacs *not* add a newline at the end of the file? Date: Wed, 31 Dec 2008 13:14:01 -0600 Organization: Ministry of Silly Walks Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230752530 28145 80.91.229.12 (31 Dec 2008 19:42:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 19:42:10 +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 20:43:18 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 1LI6yJ-0005ZQ-Rh for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 20:43:16 +0100 Original-Received: from localhost ([127.0.0.1]:58801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI6x5-0006qc-VR for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 14:41:59 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe06.iad.POSTED!7564ea0f!not-for-mail Mail-Copies-To: nobody Original-Newsgroups: gnu.emacs.help X-Using-Mail-Mode: Gmail Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAABhQTFRF HyMfQ1soVVleFGDbT2O0lH+8lZRi/OCs/zQBZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9gLGQ0kDwH3coIAAAI2SURBVDjLbdPBjpswEADQsUXgimlirtRNstdumux5lZj2ukL4DtsIriRa 4d/vzNhJ2lV9iGAeM2PHNqj/jLW1FnTOzz0AGAEipZffDwBpwmA47xEUQn4LR+hPBDiKe9wIhmXI KN4/gdYMr49CEcrLN4QvtvgEWoiPPailDZUq4BlzRllgRnIkAJDDkx8AwhLHCBWkfh5y/L1SuFPl GcG8V+C9n7snPwH0BBf1AcoWID2BH0ZpYoYqEKrMd5pEld12wuWpTjOkXnazD0l+Uj131wjZ5CGA jwCiDADZHa4EZScYsMYYSmmerp47LJUTTLeEbFYat2EWKsA1izAPvO7xBj6NxbA5LmMsEbgH1opd rgyeM37RZMYhAE5XdzP1KOyLf4wBIc23E8LSfr/3DaBVhruCYCnc9yPjpC60hQh46rJ7pXmc6K+l OMHzo4Xv9Vf+Ew3B7q/uQlM4F0vAY3qKteYKXvnzPIGEwP7kMCTWvfFurFoXYE9rT6z9cRC8T8Xe uQCZvy4cjmoIcGgDnF58Uju6Ez33Xh1ihn0+O4uHTve5pmux2ps6wGvbcpyOCK6uoK8YatcYGHCT uJKW1jQM0u2qZKtvdzNPAuzoe7NJ+xg2zrXVEQEfjuvaCbwFkk79xlFphMK1btFgRIKrcTF4wzY1 wdG5t4ZuDUiGhrOoOb5wXCwcPTtR5cDTXTd8zQA2Fqu2teBXhEUoBOB4PGAV4xK//we6CAtLvW0d 3nBWMQ6bUMpxwh+e8e5nzht7sgAAAABJRU5ErkJggg== User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:tJheubCx/6moTdLq6JKUJNmJip8= Original-Lines: 30 Original-NNTP-Posting-Host: cbggobbepdfeflbildaedobifmeaokba Original-X-Complaints-To: abuse@charter.net Original-X-Trace: emlnjhpjaknjmmohmcjobjcmnmlfmhhaodpjejpceeppkppocbggobbepdfeflbieheiiabmokgnechcgbgonncaendnepleomgnlefphppmfglleljfblfapgpelgndfdlbpmaelemcakjp Original-NNTP-Posting-Date: Wed, 31 Dec 2008 19:14:01 UTC Original-Xref: news.stanford.edu gnu.emacs.help:165670 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:61003 Archived-At: On 31 Dec 2008, Juha Nieminen wrote: > 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? M-x customize-variable RET require-final-newline RET Also see the value of the variable mode-require-final-newline. (info "(emacs)Customize Save") has the scoop. C-h i < m emacs RET m customize save RET > 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.) This I don't know off the top of my head. -- Charles Sebold 31st of December, 2008 GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) | Gnus v5.11 | org-mode 6.16trans