Is there a working nxml-mode in XEmacs?

FKtPp m_pupil at yahoo.com.cn
Tue Feb 19 20:20:03 EST 2008


--- "Stephen J. Turnbull" <stephen at 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



More information about the XEmacs-Beta mailing list