Don't use `map-char-attribute' to eliminate `ideographic-products';
authortomo <tomo>
Fri, 2 Dec 2005 12:59:31 +0000 (12:59 +0000)
committertomo <tomo>
Fri, 2 Dec 2005 12:59:31 +0000 (12:59 +0000)
delete the corresponding file instead.

install-ids.el

index d0fcf73..8d7f1e2 100644 (file)
   (princ "done.\n"))
 
 
-(mount-char-attribute-table 'ideographic-products)
-(map-char-attribute
- (lambda (c v)
-   (remove-char-attribute c 'ideographic-products)
-   nil)
- 'ideographic-products)
+;; (mount-char-attribute-table 'ideographic-products)
+;; (map-char-attribute
+;;  (lambda (c v)
+;;    (remove-char-attribute c 'ideographic-products)
+;;    nil)
+;;  'ideographic-products)
 
 
 (install-ids-read-file "IDS-JIS-X0208-1990.txt" load-ids-simplify t)
 (princ "done.\n")
 
 (princ "Updating char-feature `ideographic-products'...")
-(ids-update-index)
+(let* ((feature-dir
+       (expand-file-name
+        "feature"
+        (expand-file-name
+         "character" chise-system-db-directory)))
+       (p-file
+       (expand-file-name "ideographic-products" feature-dir))
+       old-p-file)
+  (when (file-exists-p p-file)
+    (setq old-p-file (make-temp-name p-file))
+    (rename-file p-file old-p-file))
+  (ids-update-index)
+  (when old-p-file
+    (delete-file old-p-file)))
 (princ "done.\n")
 
 ;;; install-ids.el ends hear