From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs on Windows: How to save line breaks in Unix style in undecided buffers by default. Date: Sun, 25 Jan 2009 20:43:29 +0200 Message-ID: References: <4c6bcfae0901250459v6ab06cf0o1dfc02f0d21fe9d2@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1232909065 6277 80.91.229.12 (25 Jan 2009 18:44:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2009 18:44:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 19:45:38 2009 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 1LR9zB-0002cA-4L for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2009 19:45:33 +0100 Original-Received: from localhost ([127.0.0.1]:54872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LR9xt-0002Ck-9c for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2009 13:44:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LR9xT-000284-Fn for help-gnu-emacs@gnu.org; Sun, 25 Jan 2009 13:43:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LR9xS-00027c-Kt for help-gnu-emacs@gnu.org; Sun, 25 Jan 2009 13:43:47 -0500 Original-Received: from [199.232.76.173] (port=41313 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LR9xS-00027W-FS for help-gnu-emacs@gnu.org; Sun, 25 Jan 2009 13:43:46 -0500 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:57577) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LR9xR-0002AZ-W7 for help-gnu-emacs@gnu.org; Sun, 25 Jan 2009 13:43:46 -0500 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KE100H00IMMTM00@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Sun, 25 Jan 2009 20:44:02 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.255.234]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KE100DTFIOWH0D2@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Sun, 25 Jan 2009 20:43:57 +0200 (IST) In-reply-to: <4c6bcfae0901250459v6ab06cf0o1dfc02f0d21fe9d2@mail.gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:61634 Archived-At: > Date: Sun, 25 Jan 2009 13:59:08 +0100 > From: hans bennekop > > In unsaved buffers that are not linked to a file the end-of-line style > is 'undecided'. > In this case Emacs saves line breaks in DOS style (crlf) on Windows. > How can I set it up to use Unix line breaks (lf) by default? Read the description of add-untranslated-filesystem in the Emacs manual. Alternatively, try this: (setq-default buffer-file-coding-system 'undecided-unix)