--- "Stephen J. Turnbull" <stephen(a)xemacs.org> wrote:
> well, the problem is coding-system-p in XEmacs always return nil
> 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
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.
XEmacs-Beta mailing list