Uwe Brauer writes:
Is there a way configure the modline such that not only the coding
system is displayed but also the line ending convention?
As far as I know the default is to do so, as long as Mule is
configured. Unix convention files have no indicator, Windows
convention files get ":T" appended to the coding system, and old Mac
convention files get ":t" appended.
(progn
(with-temp-buffer
(insert "This file is MS-DOS.\r\nAnother line.\r\n")
(write-region (point-min) (point-max) "/tmp/test" nil nil nil 'binary))
(find-file "/tmp/test"))
(progn
(with-temp-buffer
(insert "This file is Mac.\rAnother line.\r")
(write-region (point-min) (point-max) "/tmp/test" nil nil nil 'binary))
(find-file "/tmp/test"))
This was tested in 21.5.32, but should work in 21.4 as well.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta