(comp.emacs.xemacs is removed as I don't have access to net
news here.)
Christoph Wedler <Christoph.Wedler(a)sap.com> writes:
button2 on the multibyte extension status in the modeline (ISO8,
ISO8:T
etc) toggles the end-of-line type of the current buffer, i.e., toggles
between Unix- (LF) and Dos- (CRLF) line endings.
If this is considered generally useful, I would send corresponding
patches for coding.el and code-files.el.
I'm not sure the usefulness as I don't use mouse often.
Probably I'm not the good person to judge this kind of
feature. However, I think it is good for beginners so I'm
for including it in XEmacs.
I need some feedback whether
the patches should also include the following patches for command
`toggle-buffer-file-coding-system' which does (or should do) the same:
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.
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. :-)
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. I don't use OS whose
default EOL type is not LF).
When you submit a patch, please submit separate patch for
each feature. If you include all feature in one patch and
if someone disagrees with one feature, then entire patch
won't go in. It also allows us to review the patch with
feature by feature basis.
--
Yoshiki Hayashi