[Bug: 21.5] Confusion over line endings
Glynn Clements
glynn at gclements.plus.com
Sat Dec 17 01:04:30 EST 2005
Dr. Volker Zell wrote:
> >> Is there a way I can force a buffer into the :T mode?
>
> > Aside from Ben's and Stephen's comments, you can force the mode when
> > loading a file using a C-u prefix (e.g. C-u C-x C-f, or C-u f in
> > dired) and choosing a *-dos coding system, e.g. undecided-dos.
>
> Hmm, this is with
>
> XEmacs 21.4 (patch 18) "Social Property" [Lucid] (i686-pc-cygwin, Mule) of Wed Dec 7 2005 on vzell-de
>
> C-u C-x C-f /tmp/testeol.txt
> Codingsystem: undecided-dos
>
> Modeline shows: ISO8
>
> Typing in some characters and saving results in a file with unix line
> endings.
>
> Now kill the buffer.
>
> C-u C-x C-f /tmp/testeol.txt
> Codingsystem: undecided-dos
>
> Modeline shows: ISO8:T
>
> Not able to save the file without first changing it. But afterwards the
> file has dos line endings.
>
> Is this how it should work ?
The latter case (existing file) is right, but ignoring the coding
system for a non-existant file seems like a bug.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the XEmacs-Beta
mailing list