From: tomo Date: Mon, 13 Oct 2003 07:10:09 +0000 (+0000) Subject: (system-char-database-directory): Use "chise-db" instead of "char-db". X-Git-Tag: r21-4-12-chise-0_21-pre7-for-libchise-b1-r0_2_0-pre8~4 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=07504ca257745293904bfdfd838b3ef8d0638e11;p=chise%2Fxemacs-chise.git.1 (system-char-database-directory): Use "chise-db" instead of "char-db". - When `char-attribute-list' has optional argument `rehash', use `char-attribute-list' to mount each db files. --- diff --git a/lisp/utf-2000/update-cdb.el b/lisp/utf-2000/update-cdb.el index efae357..88c1192 100644 --- a/lisp/utf-2000/update-cdb.el +++ b/lisp/utf-2000/update-cdb.el @@ -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/"))) @@ -76,13 +76,15 @@ (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)) )))