Ar an t-aonú lá déag de mí Feabhra, scríobh Nelson Ferreira:
On Wednesday 11 February 2009 06:25:52 am Aidan Kehoe wrote:
> Ar an deichiú lá de mí Feabhra, scríobh Norbert Koch:
> > * Michael Kifer <kifer(a)cs.sunysb.edu>:
> >
> > Hi!
> >
> > Could someone please have a look at the patch down below and apply
> > it or comment on it?
>
> Nelson, (copy-coding-system 'undecided 'emacs-internal) is wrong.
> undecided is a coding system that is not sure what line endings it's
> going to use, as to the content of the region it?s trying to encode it
> treats it as does the binary coding system, trashing non-Latin-1. The
> reason the ediff people are using emacs-internal, if I understand
> things correctly, is to encode unambiguously every GNU Emacs character,
> and using undecided defeats the purpose of that. Ediff should be using
> escape-quoted when (featurep 'xemacs).
>
> It looks like emacs-internal is the GNU Emacs 23.X equivalent of
> emacs-mule, (in this case an alias of utf-8-emacs-unix) but it does not
> appear to have the issues that that has. Good.
>
So Aidan, you advise that I submit:
+;; compatibility for new Emacsen (don't use it)
+(copy-coding-system 'escape-quoted 'emacs-internal)
+
If you’re going to make a compatible coding system, that would be the one to
use. But code that uses it is brittle; escape-quoted does not correspond to
the XEmacs or SXEmacs internal encoding exactly, and code that assumes it
does will break.
I don’t know why 21.4 and SXEmacs doesn’t do it like this, by the way, but
in 21.5:
(define-coding-system-alias 'emacs-internal 'escape-quoted)
would be the equivalent code, saving a little memory.
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghe, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches