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: Windows text files saved as Unix files Date: 10 Mar 2004 07:54:07 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <7DC731FDF2B7204F92F1A7468C226CB9100BD620@sw720x044.visa.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079188578 21436 80.91.224.253 (13 Mar 2004 14:36:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2004 14:36:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 13 15:36:08 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 1B2AFE-0000uV-00 for ; Sat, 13 Mar 2004 15:36:08 +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 1B1XSk-0003tr-1a for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Mar 2004 16:11:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B0wdd-0004rA-55 for help-gnu-emacs@gnu.org; Wed, 10 Mar 2004 00:52:17 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B0wd5-0004jd-C1 for help-gnu-emacs@gnu.org; Wed, 10 Mar 2004 00:52:14 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.30) id 1B0wd4-0004iP-DF; Wed, 10 Mar 2004 00:51:42 -0500 Original-To: "Feghhi, Jalil" In-reply-to: <7DC731FDF2B7204F92F1A7468C226CB9100BD620@sw720x044.visa.com> (JFeghhi@visa.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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:17567 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17567 > From: "Feghhi, Jalil" > Date: Thu, 4 Mar 2004 11:57:10 -0800 > > I just installed the Windows versions of emacs and when I edit text files on my Windows they are saved with unix-stype linefeeds. When I open these files, I see Unix at the left hand side of the buffer too. > > I searched for some time and found several articles on this but nothing that could help me. How can I fix this problem? Also, why the default installation for Windows is like this? Are these new files you create with Emacs, or are these existing files you edit? If the latter, Emacs preserves their original end-of-line format; if they originally had Unix-style linefeeds, Emacs will save the edited file with the same end-of-line format. If these are new files created by Emacs, it's probably something in your customization, as by default Emacs on Windows creates files with Windows-style CR-LF pairs at the end of each line. Try invoking Emacs with "emacs -q" and see if that helps; if it does, look inside your .emacs (or _emacs) init file for some customization that causes this. Things to watch for are setting of the defaults for files' coding-system and use of untranslated-filesystem feature.