(char-db-coded-charset-priority-list): New variable.
authortomo <tomo>
Fri, 19 Oct 2001 17:49:23 +0000 (17:49 +0000)
committertomo <tomo>
Fri, 19 Oct 2001 17:49:23 +0000 (17:49 +0000)
(char-db-insert-char-spec): Use `char-db-coded-charset-priority-list'
to split a character.

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

index ce40042..cbf81eb 100644 (file)
    ((symbolp kb)
     nil)))
 
+(defvar char-db-coded-charset-priority-list
+  (sort (copy-list default-coded-charset-priority-list)
+       #'char-attribute-name<))
+
 (defun char-db-insert-char-spec (char &optional readable column)
   (unless column
     (setq column (current-column)))
                  (if (setq ret (get-char-attribute char 'name))
                      (setq char-spec (cons (cons 'name ret) char-spec)))
                  )
-                ((setq ret (split-char char))
+                ((setq ret
+                       (let ((default-coded-charset-priority-list
+                               char-db-coded-charset-priority-list))
+                         (split-char char)))
                  (setq char-spec (list ret))
                  (dolist (ccs (delq (car ret) (charset-list)))
                    (if (or (and (>= (charset-iso-final-char ccs) ?0)