From owner-freebsd-questions@FreeBSD.ORG Thu Sep 14 05:20:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6440916A49E for ; Thu, 14 Sep 2006 05:20:44 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 449FC43D7B for ; Thu, 14 Sep 2006 05:20:40 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id k8E5KLfI024965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Sep 2006 08:20:26 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k8E5KgR8077033; Thu, 14 Sep 2006 08:20:42 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k8E5KfLG077032; Thu, 14 Sep 2006 08:20:41 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 14 Sep 2006 08:20:41 +0300 From: Giorgos Keramidas To: Alex Zbyslaw Message-ID: <20060914052041.GB76681@gothmog.pc> References: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> <45083690.80904@dial.pipex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45083690.80904@dial.pipex.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.783, required 5, autolearn=not spam, AWL -0.18, BAYES_00 -2.60, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Andy Greenwood , freebsd-questions@freebsd.org Subject: Re: CLI text editor recommendation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 05:20:44 -0000 On 2006-09-13 17:49, Alex Zbyslaw wrote: >Andy Greenwood wrote: >> I need a CLI text editor I can use over ssh, which does NOT append >> newlines to the end of files as I save them. I am using this to edit >> PHP files, and my PHP doesn't like newlines outside the last ?>. ee >> and vi both do so, I tried nano which also does the same. I haven't >> installed emacs to try that yet, since the man page says that it also >> does the same thing. Does anyone have any ideas? > > Emacs most certainly can save files without newlines. I don't see any > option in my .emacs to force this behaviour so assume it works out of > the box, nor can I find any reference in the man page which says it > does add newlines. FWIW, try looking at the documentation of `require-final-newline': C-h v require-final-newline RET