emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] emacs-wiki publish error under emacs22


From: Ming Zhao
Subject: Re: [emacs-wiki-discuss] emacs-wiki publish error under emacs22
Date: Sun, 27 Feb 2005 14:43:34 +0800

I'm wondering whether this is a bug introduced by emacs-unicode branch.
When I evaluated 
(charset-short-name 'chinese-gbk)

I got the following backtrace:
Debugger entered--Lisp error: (wrong-type-argument charsetp (quote chinese-gbk))
  charset-plist((quote chinese-gbk))
  #[(charset) "\301\302^H!\303\"\207" [charset plist-get charset-plist
:short-name] 3 1635676]((quote chinese-gbk))
  (charset-short-name (quote chinese-gbk))
  eval((charset-short-name (quote chinese-gbk)))

but (get-charset-property 'chinese-gbk :short-name) works properly.

And this is a dirty trick to fix this bug, place the following line to
your .emacs:

(defun charset-short-name (charset)
  "Return short name of CHARSET."
  (plist-get (charset-plist charset) :short-name))

Yeah, we just replaced defmacro with defun, then it works for me.

Cheers,
Ming




reply via email to

[Prev in Thread] Current Thread [Next in Thread]