Yoshiki Hayashi <yoshiki(a)xemacs.org> writes:
> comp.emacs.xemacs is removed as I don't have access to net news
> here.)
Hm, I'm not subscribed to xemacs-beta (this is not a really good idea
with MS-Outlook :-(, I can just send my mail with Emacs), but I can
check the list-archive on the web... But don't expect Reference
headers...
> Christoph Wedler <Christoph.Wedler(a)sap.com> writes:
>> 1. Also toggles eol type for new files (technical: switches from eol
>> type nil to crlf, of course not for coding systems like binary).
> No, I don't think toggle-buffer-file-coding-system should change the
> default EOL type.
OK, I expected this. The point is that EOL type nil doesn't mean some
default EOL type (which you could customize somewhere), it means
auto-detect (if the info files are correct) and auto-detect when saving
the buffer means XEmacs' way which is the Unix file ending.
Thus, in the current XEmacs on Windows-NT, you have to do the following
to produce a file with CRLF endings:
1. open the file, write some text
2. save it
3. kill the buffer
4. load the same file
5. M-x toggle-buffer-file-coding-system
6. insert & delete a char
7. save it
I hope that everybody agrees that this is somewhat annoying.
Toggling the EOL type between 1 and 2 has no effect since we have the
EOL type nil whereas 5 works since then we have the EOL type lf.
Thus, I fail to see where "toggling" from nil to crlf is bad.
>> 2. Sets buffer as modified (if not read-only). Why do you want to
>> toggle the eol type if you don't want to save the buffer?
> I like it. I have long been wanted that
> set-buffer-file-coding-system do the same but it didn't
> annoyed me enough to submit a patch. :-)
This is in the Windows branch as Andy has said? Not XEmacs-21.4.5...
>> BTW, any possibility to get ":dos" instead of ":T" in the modeline?
> I think it is a good change. GNU Emacs prints (DOS) and (MAC) and it
> is easier to recognize than cryptic ':T'. (I don't know how LF is
> represented.
":t". Yup, that's quite cryptic. But hey, I didn't make _that_
change. I don't see where it can be done in Lisp. But it should be
able to do this in Lisp, since some people want to have the space....
> When you submit a patch, [...]
Talking of patches, xemacs-patches is again broken. I got no robot
reply for a couple of patches (OK, I let my first e-mails be spoiled by
some "Sender" header which Gnus thinks it had to add, but later ones
were without the Sender header).
BTW, is xemacs-beta the right place to report bugs to? The regexp bug
in XEmacs-21.4.5 leads to some strange behaviours...
To other remarks:
* "Toggling" Unix -> Dos -> Mac -> ... doesn't seem to be what people
really need. Ok, there could be a variable... But it should affect
also the existing command M-x toggle-buffer-file-coding-system.
* EOL-Type menu: hm, a bit too much stuff for such a small thing (with
the button-2 thing I just wanted to avoid people asking me how to do
this in XEmacs...)
* To whether I should call toggle-buffer-file-coding-system in my mouse
funciton: yes, that's why I wanted to make the changes in
toggle-buffer-file-coding-system.
- Christoph