`coding:' cookie as lisp hook

"Golubev I. N." <[email protected]> Thu, 28 Mar 2002 19:13:38 (GMT)
Newsgroups gmane.emacs.xemacs.mule
Message-ID <[email protected]>
Whatever xemacs developers' policy wrt `coding:' cookies in files is,
cookies may be implemented in elisp (without rebuilding xemacs).

Emacs processes cookies entirely in elisp through
`set-auto-coding-function' value.  Elisp implementation of it may be
lifted from emacs with little change.  Calling
`set-auto-coding-function' in a proper way may be easily arranged
using `insert-file-contents-pre-hook'.  Have run xemacs-21.1.14 this
way.