* emu.el (char-category for XEmacs): Don't use `int-char' when the function
[elisp/apel.git] / emu.el
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)
                           ""))
              )