all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* newline vs CRLF
@ 2003-03-18 17:56 Steve Chard
  2003-03-18 21:07 ` Eli Zaretskii
  2003-03-18 21:38 ` Roman A. Lagunov
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Chard @ 2003-03-18 17:56 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: newline vs CRLF
  2003-03-18 17:56 newline vs CRLF Steve Chard
@ 2003-03-18 21:07 ` Eli Zaretskii
  2003-03-18 21:38 ` Roman A. Lagunov
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2003-03-18 21:07 UTC (permalink / raw)


> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: newline vs CRLF
  2003-03-18 17:56 newline vs CRLF Steve Chard
  2003-03-18 21:07 ` Eli Zaretskii
@ 2003-03-18 21:38 ` Roman A. Lagunov
  1 sibling, 0 replies; 3+ messages in thread
From: Roman A. Lagunov @ 2003-03-18 21:38 UTC (permalink / raw)


>>>>> "SC" ==> Steve Chard  writes:

 SC> I work on a Linux box using XEMACS and a Win2K using EMACS 21.2.
 SC> Whenever the Linux box opens a file (for example, a Perl script),
 SC> it puts a CRLF pair (carriage return/line feed hex 0D0A) in the
 SC> place of the normal single newline (hex 0A).  This is truly
 SC> annoying.  How do I stop this behavior.

 Look at this:
 
,----
| C-x RET c runs the command universal-coding-system-argument
|    which is an interactive compiled Lisp function in `international/mule-cmds'.
| (universal-coding-system-argument)
| 
| Execute an I/O command using the specified coding system.
`----

 When you press these keys, you should select coding system wich
 ending -dos.
 
 For example - koi8-r-dos if you on a Linux, or koi8-r-unix if you on
 a Windows.

-- 
  Roman

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-18 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-18 17:56 newline vs CRLF Steve Chard
2003-03-18 21:07 ` Eli Zaretskii
2003-03-18 21:38 ` Roman A. Lagunov

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.