From: Kenichi Handa Date: Tue, 20 Aug 2002 03:58:23 +0000 (+0000) Subject: (describe-buffer-case-table): Handle the case that KEY is a cons X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~422 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=064808ae246cd108c0d410f52937a18d9417f5a6;p=emacs.git (describe-buffer-case-table): Handle the case that KEY is a cons within map-char-table. --- diff --git a/lisp/case-table.el b/lisp/case-table.el index aca05141040..51c9c444ddd 100644 --- a/lisp/case-table.el +++ b/lisp/case-table.el @@ -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*"