From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Roodwriter@core.com" Newsgroups: gmane.emacs.help Subject: Re: Can I change the way emacs saves text files? Date: Fri, 20 Feb 2004 16:13:37 -0500 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <103cu1cmf3vko06@corp.supernews.com> References: Reply-To: Roodwriter@core.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1077312098 12026 80.91.224.253 (20 Feb 2004 21:21:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2004 21:21:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 22:21:33 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AuI5V-00050f-00 for ; Fri, 20 Feb 2004 22:21:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AuI4W-0006zo-6W for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2004 16:20:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!sn-xit-02!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.7.1 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 34 Original-Xref: shelby.stanford.edu gnu.emacs.help:121085 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17035 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17035 David Kastrup wrote: > "William Payne" writes: > >> Hello, can I control the way Emacs saves text files, and by way I mean >> windows style and *nix style line breaks? >> >> Preferrably, I'm looking for a setting I can put in my .emacs file. > > What problem are you having with it? It saves usually in the style > in which it has read them. > I've had the same problem with 21.1.1, though it worked fine with an earlier version. It always saved with Linux/unix line ends. I just created macros using replace-regexp to change the line ends, easily converting from either system. These days, though, I figure I'm on Linux for good so I no longer save with Windows line ends unless I'm sending the file to a Windows machine. --Rod __________ Author of "Linux for Non-Geeks--Clear-eyed Answered for Practical Consumers" and "Boring Stories from Uncle Rod." Both are available at http://www.rodwriterpublishing.com/index.html To reply by e-mail, take the extra "o" out of the name.