(of-component-features): Don't refer `<-ideographic-component-forms'
authorMORIOKA Tomohiko <tomo.git@chise.org>
Sun, 23 Jul 2017 06:08:17 +0000 (15:08 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Sun, 23 Jul 2017 06:08:17 +0000 (15:08 +0900)
because it has been already abolished; refer `<-mistakable'.
(to-component-features): Don't refer `->ideographic-component-forms'
because it has been already abolished; refer `->formed'.
(ids-find-chars-covered-by-components): Delete unused local variables
`ucs' and `jis'.

ids-find.el

index 2c611ae..9ff51f4 100644 (file)
@@ -74,7 +74,7 @@
       (when (string-match "^<-.*[@/]component\\(/[^*/]+\\)*$"
                          (symbol-name feature))
        (push feature dest)))
-    (cons '<-ideographic-component-forms
+    (cons '<-mistakable
          dest)))
 
 (defun to-component-features ()
@@ -83,7 +83,7 @@
       (when (string-match "^->.*[@/]component\\(/[^*/]+\\)*$"
                          (symbol-name feature))
        (push feature dest)))
-    (cons '->ideographic-component-forms
+    (cons '->formed
          dest)))
 
 ;;;###autoload
   (with-current-buffer (get-buffer-create ids-find-result-buffer)
     (setq buffer-read-only nil)
     (erase-buffer)
-    (let (ucs jis)
-      (map-char-attribute
-       (lambda (c v)
-        (when (ideographic-structure-repertoire-p v components)
-          (insert (ids-find-format-line c v))))
-       'ideographic-structure))
+    (map-char-attribute
+     (lambda (c v)
+       (when (ideographic-structure-repertoire-p v components)
+        (insert (ids-find-format-line c v))))
+     'ideographic-structure)
     (goto-char (point-min)))
   (view-buffer ids-find-result-buffer))