(char-attribute-name<) Use `charset-iso-final-char' instead of
authortomo <tomo>
Tue, 16 Nov 1999 15:08:07 +0000 (15:08 +0000)
committertomo <tomo>
Tue, 16 Nov 1999 15:08:07 +0000 (15:08 +0000)
`charset-final'; fixed.
(insert-char-data): Delete unused local variable `name'; use
`charset-iso-graphic-plane' instead of `charset-graphic'.
(char-db-update-comment): Use `charset-iso-graphic-plane' instead of
`charset-graphic'.
(insert-char-range-data): Delete unused local variable `variants'.
(what-character-original-window-configuration): Define to avoid
compiler warning.

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

index 5e7b76f..966cca3 100644 (file)
           (charset-dimension kb))
        (cond ((= (charset-chars ka)(charset-chars kb))
               (cond
-               ((>= (charset-final ka) ?@)
-                (if (>= (charset-final kb) ?@)
-                    (< (charset-final ka)
-                       (charset-final kb))
+               ((>= (charset-iso-final-char ka) ?@)
+                (if (>= (charset-iso-final-char kb) ?@)
+                    (< (charset-iso-final-char ka)
+                       (charset-iso-final-char kb))
                   t))
-               ((>= (charset-final ka) ?0)
+               ((>= (charset-iso-final-char ka) ?0)
                 (cond
-                 ((>= (charset-final kb) ?@)
+                 ((>= (charset-iso-final-char kb) ?@)
                   nil)
-                 ((>= (charset-final kb) ?0)
-                  (< (charset-final ka)
-                     (charset-final kb)))
+                 ((>= (charset-iso-final-char kb) ?0)
+                  (< (charset-iso-final-char ka)
+                     (charset-iso-final-char kb)))
                  (t)))))
              ((<= (charset-chars ka)(charset-chars kb)))))
        (t
        (< (charset-dimension ka)
           (charset-dimension kb))
        )))
-     (t)))
+     ((symbolp kb)
+      nil)
+     (t
+      t)))
    ((find-charset kb)
     t)
    ((symbolp ka)
 
 (defun insert-char-data (char)
   (let ((data (char-attribute-alist char))
-       cell ret name has-long-ccs-name rest)
+       cell ret has-long-ccs-name rest)
     (when data
       (save-restriction
        (narrow-to-region (point)(point))
        (while data
          (setq cell (car data))
          (cond ((setq ret (find-charset (car cell)))
-                (insert (format (if has-long-ccs-name
-                                    "(%-26s %s)
+                (insert
+                 (format
+                  (if has-long-ccs-name
+                      "(%-26s %s)
     "
-                                  "(%-18s %s)
+                    "(%-18s %s)
     "
-                                  )
-                                (charset-name ret)
-                                (mapconcat
-                                 (lambda (b)
-                                   (format "#x%02X"
-                                           (if (= (charset-graphic ret) 1)
-                                               (logior b #x80)
-                                             b)))
-                                 (cdr cell) " "))))
+                    )
+                  (charset-name ret)
+                  (mapconcat
+                   (lambda (b)
+                     (format "#x%02X"
+                             (if (= (charset-iso-graphic-plane ret) 1)
+                                 (logior b 128)
+                               b)))
+                   (cdr cell) " "))))
                ((string-match "^->" (symbol-name (car cell)))
                 (insert
                  (format "(%-18s %s)
                (if (or (memq (car cdef) '(ascii latin-viscii-upper
                                                 latin-viscii-lower
                                                 arabic-iso8859-6))
-                       (= (char-int (charset-final (car cdef))) 0))
+                       (= (char-int (charset-iso-final-char (car cdef))) 0))
                    (apply (function make-char) cdef)
                  (if (setq table (charset-mapping-table (car cdef)))
                      (set-charset-mapping-table (car cdef) nil))
 
 (defun insert-char-range-data (min max)
   (let ((code min)
-       char
-       variants)
+       char)
     (while (<= code max)
       (setq char (int-char code))
       (insert-char-data-with-variant char)
     (insert-char-range-data min max)
     (write-region (point-min)(point-max) file)))
 
+(defvar what-character-original-window-configuration)
+
 ;;;###autoload
 (defun what-char-definition (char)
   (interactive (list (char-after)))