From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: Can I change the way emacs saves text files? Date: Sat, 21 Feb 2004 11:41:09 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7494-Sat21Feb2004114108+0200-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077356602 10524 80.91.224.253 (21 Feb 2004 09:43:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Feb 2004 09:43:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 21 10:43:18 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 1AuTfK-0005cH-00 for ; Sat, 21 Feb 2004 10:43:18 +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 1AuTeM-00013l-ER for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Feb 2004 04:42:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AuTe2-00013Z-Ul for help-gnu-emacs@gnu.org; Sat, 21 Feb 2004 04:41:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AuTdW-0000fK-1a for help-gnu-emacs@gnu.org; Sat, 21 Feb 2004 04:41:57 -0500 Original-Received: from [192.114.186.22] (helo=gollum.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AuTdV-0000fG-MG for help-gnu-emacs@gnu.org; Sat, 21 Feb 2004 04:41:25 -0500 Original-Received: from zaretski (pns03-202-138.inter.net.il [80.230.202.138]) by gollum.inter.net.il (MOS 3.4.4-GR) with ESMTP id CLY94557; Sat, 21 Feb 2004 11:41:19 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from David Kastrup on 21 Feb 2004 01:26:52 +0100) 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:17043 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17043 > From: David Kastrup > Newsgroups: gnu.emacs.help > Date: 21 Feb 2004 01:26:52 +0100 > > (set-default-coding-system 'latin-1-unix) > > or something like that should do the trick for setting the default. Not a good idea, IMHO: the OP only wants to control the end-of-line translation, not the entire encoding. Forcing Emacs to always use latin-1-unix will do much more, and is most probably not what you want in the OP's situation.