changeset 89016:82f852ddca70

(describe-buffer-case-table): Handle the case that KEY is a cons within map-char-table.
author Kenichi Handa <handa@m17n.org>
date Tue, 20 Aug 2002 03:58:23 +0000
parents 024c92b51ee7
children 6a9e0cb7368b
files lisp/case-table.el
diffstat 1 files changed, 13 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/case-table.el	Mon Aug 19 12:14:25 2002 +0000
+++ b/lisp/case-table.el	Tue Aug 20 03:58:23 2002 +0000
@@ -35,17 +35,19 @@
   (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*"