Andy Scharmer wrote:
To: XEmacs Beta <xemacs-beta(a)xemacs.org>
Subject: [Bug: 21.4.13] XEmacs doesn't write DOS line endings, it writes
UNIX line endings
--text follows this line--
================================================================
Dear Bug Team!
I am running XEmace native mode in Windows XP and Windows 2000. If I create
a file using XEmacs, it writes UNIX line endings (0x0A). I cannot find
a way
to make it write DOS line endings. I wrote a quick macro to search the
buffer and replace all 0x0A's with 0x0A0x0D so I can create a file properly,
but I have to do this on the initial file only. If I start with a file
that's already in the
correct mode, XWmacs handles line endings correctly.
I'd also like the capability of having new windows files start out with
CRLF line endings.
I investigated this a bit and tried setting (setq
default-buffer-coding-system 'raw-text-dos) in my init.el. I also tried
(setq-default default-buffer-coding-system 'raw-text-dos). Neither
seemed to change the value of default-buffer-coding-system. On
restarting XEmacs and creating a new file, default-buffer-coding-system
still reported 'raw-text'.
Any advice on how to set it?
--
Tony Freixas
tony(a)freixas.org