(what-char-definition): Use `decode-char' instead of `make-char' to
authortomo <tomo>
Sat, 24 Nov 2001 17:37:02 +0000 (17:37 +0000)
committertomo <tomo>
Sat, 24 Nov 2001 17:37:02 +0000 (17:37 +0000)
display comment for builtin character.

lisp/utf-2000/char-db-util.el

index 50996cb..7cd5bf6 100644 (file)
          (insert-char-data-with-variant char 'printable)
          (unless (char-attribute-alist char)
            (insert (format ";; = %c\n"
-                           (apply #'make-char (split-char char)))))
+                           (let* ((rest (split-char char))
+                                  (ccs (pop rest))
+                                  (code (pop rest)))
+                             (while rest
+                               (setq code (logior (lsh code 8)
+                                                  (pop rest))))
+                             (decode-char ccs code)))))
           ;; (char-db-update-comment)
          (set-buffer-modified-p nil)
          (view-mode the-buf (lambda (buf)