]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-buffer-case-table): Handle the case that KEY is a cons
authorKenichi Handa <handa@m17n.org>
Tue, 20 Aug 2002 03:58:23 +0000 (03:58 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 20 Aug 2002 03:58:23 +0000 (03:58 +0000)
within map-char-table.

lisp/case-table.el

index aca05141040ef8641984b6ba7db64e61f538abed..51c9c444dddc2bb1fbe93c6b85cd64f810bd5764 100644 (file)
   (let ((description (make-char-table 'case-table)))
     (map-char-table
      (function (lambda (key value)
-                (aset
-                 description key
-                 (cond ((not (natnump value))
-                        "case-invariant")
-                       ((/= key (downcase key))
-                        (concat "uppercase, matches "
-                                (char-to-string (downcase key))))
-                       ((/= key (upcase key))
-                        (concat "lowercase, matches "
-                                (char-to-string (upcase key))))
-                       (t "case-invariant")))))
+                (if (consp key)
+                    (set-char-table-range description key "case-invariant")
+                  (aset
+                   description key
+                   (cond ((not (natnump value))
+                          "case-invariant")
+                         ((/= key (downcase key))
+                          (concat "uppercase, matches "
+                                  (char-to-string (downcase key))))
+                         ((/= key (upcase key))
+                          (concat "lowercase, matches "
+                                  (char-to-string (upcase key))))
+                         (t "case-invariant"))))))
      (current-case-table))
     (save-excursion
      (with-output-to-temp-buffer "*Help*"