* emu.el (char-category for XEmacs): Don't use `int-char' when the function
authoryamaoka <yamaoka>
Fri, 23 Feb 2001 01:03:32 +0000 (01:03 +0000)
committeryamaoka <yamaoka>
Fri, 23 Feb 2001 01:03:32 +0000 (01:03 +0000)
 `char-category-list' returns a list of characters.

ChangeLog
emu.el

index 7e50eef..b21926d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-23  Katsumi Yamaoka   <yamaoka@jpl.org>
+
+       * emu.el (char-category for XEmacs): Don't use `int-char' when the
+       function `char-category-list' returns a list of characters.
+
 2001-02-01  NAKAJIMA Mikio  <minakaji@osaka.email.ne.jp>
 
        * README.ja: Updated as to MAKEIT.BAT and MAKE1.BAT.
diff --git a/emu.el b/emu.el
index 7ce3e44..8b91770 100644 (file)
--- a/emu.el
+++ b/emu.el
 CHAR can be any multilingual character
 TABLE defaults to the current buffer's category table."
                (mapconcat (lambda (chr)
-                            (char-to-string (int-char chr)))
+                            (if (integerp chr)
+                                (char-to-string (int-char chr))
+                              (char-to-string chr)))
+                          ;; `char-category-list' returns a list of
+                          ;; characters in XEmacs 21.2.25 and later,
+                          ;; otherwise integers.
                           (char-category-list character)
                           ""))
              )