Ar an cúigiú lá déag de mí Bealtaine, scríobh Stephen J. Turnbull:
In XML, it's strictly enforced by validating parsers;
Right, but there’s no guarantee a validating parser has been run on a given
XML file that XEmacs sees.
> We need to respond sensibly to that at the start of a file. We
> don’t currently.
We don't *need* to do anything; the user can always go back and
re-read the file with C-u C-x C-f.
Oh, don’t be obtuse. On that reasoning, we can abandon development right now
since anyone who would like a feature we don’t have can implement it
themselves.
The question is "how can we help the judicious coder introduce
a
convenient automatic protocol without exposing naive users to abuse from
the kind of guy who would smoke in a maternity ward?"
Warnings, I think.
> > 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).
>
> That’s distinct from sniffing using coding cookies,
No, that is an error mode of sniffing from cookies that we *create*
for our users by parsing cookies that are not enforced by the protocol
we're editing,
The same error mode arises when the automatic coding detection (independent
of coding cookies) gets something wrong. It’s distinct from sniffing
cookies.
> > Anyway, IIRC, you already committed a half-baked patch
from Ivan
> > Golubev to do this.
>
> No, that wasn’t me.
Well, if you decide to do this yourself, Ivan did exactly what you
propose (port the GNU code, from 21.3 IIRC). I thought somebody
committed it as a package, but you're right, I don't see it anywhere.
If you can find it without too much searching, I’d appreciate a link to what
Ilya posted. Otherwise I suppose I can ask him.
I'll help with documenting existing workarounds.
--
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta