(system-char-database-directory): Use "chise-db" instead of "char-db".
authortomo <tomo>
Mon, 13 Oct 2003 07:10:09 +0000 (07:10 +0000)
committertomo <tomo>
Mon, 13 Oct 2003 07:10:09 +0000 (07:10 +0000)
- When `char-attribute-list' has optional argument `rehash', use
  `char-attribute-list' to mount each db files.

lisp/utf-2000/update-cdb.el

index efae357..88c1192 100644 (file)
@@ -37,7 +37,7 @@
 (cond
  ((featurep 'chise)
   (defvar system-char-database-directory
-    (expand-file-name "char-db"
+    (expand-file-name "chise-db"
                      (or exec-directory
                          "../lib-src/")))
 
       (save-charset-mapping-table ccs))
     )
    (t
-    (mapcar (lambda (file)
-             (mount-char-attribute-table
-              (intern (file-name-char-attribute-name file))))
-           (directory-files
-            (expand-file-name "system-char-id"
-                              system-char-database-directory)
-            nil nil t t))
+    (if (>= (function-min-args 'char-attribute-list) 1)
+       (char-attribute-list 'rehash)
+      (mapcar (lambda (file)
+               (mount-char-attribute-table
+                (intern (file-name-char-attribute-name file))))
+             (directory-files
+              (expand-file-name "system-char-id"
+                                system-char-database-directory)
+              nil nil t t)))
     (dolist (ccs (charset-list))
       (reset-charset-mapping-table ccs))
     )))