all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Subject: Re: newline vs CRLF
Date: Tue, 18 Mar 2003 23:07:22 +0200	[thread overview]
Message-ID: <6480-Tue18Mar2003230721+0200-eliz@elta.co.il> (raw)
In-Reply-To: <3E775DDE.32473E13@moblcode.com> (message from Steve Chard on Tue, 18 Mar 2003 09:56:46 -0800)

> Date: Tue, 18 Mar 2003 09:56:46 -0800
> From: Steve Chard <steve.chard@moblcode.com>
> 
> I work on a Linux box using XEMACS and a Win2K using EMACS 21.2. 
> Whenever the Linux box opens a file (for example, a Perl script), it
> puts a CRLF pair (carriage return/line feed hex 0D0A) in the place of
> the normal single newline (hex 0A).  This is truly annoying.  How do I
> stop this behavior.

If the file you vuisit existed before and had Unix-style single
newline characters at the end of each line, Emacs running on W2K
ought to preserve the end-of-line format.  If it doesn't, something
must be wrong with your customizations; try "emacs -q" and see if
that makes the problem go away.

If the problem is that you want new files you create on W2K to have
Unix-style end-of-line format, see the node "Text and Binary" in the
Emacs manual which describes the untranslated filesystem facility that
will help you.  For a single file, "C-x RET f unix RET C-x C-s" will
save the file in Unix EOL format.

HTH

  reply	other threads:[~2003-03-18 21:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-18 17:56 newline vs CRLF Steve Chard
2003-03-18 21:07 ` Eli Zaretskii [this message]
2003-03-18 21:38 ` Roman A. Lagunov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6480-Tue18Mar2003230721+0200-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.