This version goes through format-alist, which allows saving to work, and I guess is the clean way to have a buffer offer a transformed version of underlying file contents.
The transformation goes from unibyte file bytes to multibyte buffer text. It was nice to see that worked out of the box in emacs 22, though emacs 21 needs a little prod, hence there's still a `mo-mode' function. That function also copes with tar-mode and archive-mode not looking at format-alist on reading (in 21 and 22 both).
mo-mode.el
Description: application/emacs-lisp
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGTjlGLFMCIV9q3ToRAhX7AJ0X78RpyTzUe4w/NYEZ2Kt4lB1PkwCfaw8I ZhZEGEMdRtl/J5ZWf+Q4PEQ= =F2uw -----END PGP SIGNATURE-----
-- My long running dispute with the tax man was decided in the high court on Friday. My solicitor texted me, "Justice prevailed." I replied "Appeal immediately."
_______________________________________________ gnu-emacs-sources mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
