--- "Stephen J. Turnbull" <stephen(a)xemacs.org> wrote:
FKtPp writes:
> well, the problem is coding-system-p in XEmacs always return nil
when
> invoked using the form of:
>
> (coding-system-p 'us-ascii)
> (coding-system-p 'cn-gb-2312)
That's correct; those are symbols. If you have a symbol naming a
coding system, you have to get the corresponding coding system first
using (get-coding-system name).
Thanks for your explain, I'll try this.
But you won't get anywhere with
us-ascii, because it isn't a coding system. For ASCII use the coding
system `iso-8859-1'.
But why do you need to check whether something is a coding system or
not? Application code shouldn't be doing that.
Well actually it is the nxml-enc code. It have to using this technique
to avoid redefinsion of us-ascii coding system.
unless there's a us-ascii coding system
define new coding system named us-ascii
The coding-system-p in GNU just take a 'symbol for that purpose, But in
XEmacs we have to pass coding-system-p an OBJECT.
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta