Steve Mitchell writes:
With a Citizen Swiss lathe, a file that has CR+LF will upload OK
but will not be recognized as a valid program until the line ends
are LF only. I suppose that can be done with a separate command
line utility, But what I need to happen is that the file is
changed, not how it is displayed in XEmacs.
If you can recognize the file with a regexp, then adding
(REGEXP undecided . iso-8859-1-unix)
to `file-coding-system-alist' should do what you want (recognize an
arbitrary format, display it nicely, then save as Latin-1 with Unix
line endings). Of course you can change iso-8859-1 to something else
if appropriate.
I need it to upload a certain way. You can say that my use is an
edge case, or a very small part of how this would be used, and you
might be right, but it exists here and changing the file itself is
what I want to have happen.
But it's better to configure it once and have it happen automatically,
no? ;-)
If I can figure out how to tell the current line end encoding system,
(coding-system-eol-type buffer-file-coding-system)
See also coding-system-eol-type-mnemonic.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta