[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-detecting encoding for XML
From: |
Stefan Monnier |
Subject: |
Re: auto-detecting encoding for XML |
Date: |
Sun, 19 May 2002 19:13:48 -0400 |
> * international/mule.el (auto-coding-functions): New variable.
Why not extend auto-coding-regexp-alist so it can associate a regexp
to a function (rather than a coding-system) ?
Or why not do what po.el does (i.e. use file-coding-system-alist) ?
Admittedly, the file-coding-system-alist approach is pretty
hairy/heavy-weight.
In any case we should come up with some way to do those things conveniently,
because it applies to po-mode, to sgml-mode to tex-mode and probably
a lot more. Note that these are always associated with a mode, so
it would be good if the implementation also was mode-specific so
that it automatically works if you open an xml file called
foo.myxmlextension (as long as "\\.myxmlextension\\'" is in the
auto-mode-alist).
Stefan