"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
Aidan Kehoe writes:
> GNU Emacs’ coding sniffing is better than ours; for example, it responds
> sensibly to this at the start of a file:
>
> #!/usr/bin/env perl
> # -*- coding: windows-1251 -*-
Please, no. IMHO, if this must be done, do a design from scratch, and
think about how to recover from an incorrect cookie (eg, because
somebody copied boilerplate from one mostly-ASCII file to another,
perhaps in an editor that doesn't respect cookies). *Then* look at
GNU's implementation and see if it makes sense in the light of a
sensible design.
Whether or not it makes sense in the light of a sensible design: if it
is reasonably reliable, there is a chance that people will adapt the
few cases where it misses to Emacs' heuristics, and if XEmacs had
different heuristics, this would be sort of a pain in the neck.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta