aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-05-16 19:51:14 +0000
committerDave Love2002-05-16 19:51:14 +0000
commitaf2799880a3ebf1ddfe3e793266bb3a0fd737167 (patch)
treed645e839c2eafa4987d5425f224d7f7dd47d5192
parentb1603380b1ba2af7287d263b321579387d876b5f (diff)
downloademacs-af2799880a3ebf1ddfe3e793266bb3a0fd737167.tar.gz
emacs-af2799880a3ebf1ddfe3e793266bb3a0fd737167.zip
(list-character-sets-1): Fix last change.
(describe-character-set): Re-written.
-rw-r--r--lisp/international/mule-diag.el44
1 files changed, 17 insertions, 27 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el
index cd516a08f98..d49021a7008 100644
--- a/lisp/international/mule-diag.el
+++ b/lisp/international/mule-diag.el
@@ -160,9 +160,7 @@ SORT-KEY should be `name' or `iso-spec' (default `name')."
160 (setq charset-info-list (sort charset-info-list sort-func)) 160 (setq charset-info-list (sort charset-info-list sort-func))
161 161
162 ;; Insert information of character sets. 162 ;; Insert information of character sets.
163 (while charset-info-list 163 (dolist (elt charset-info-list)
164 (setq elt (car charset-info-list)
165 charset-info-list (cdr charset-info-list))
166 (insert-text-button (symbol-name (car elt)) 164 (insert-text-button (symbol-name (car elt))
167 :type 'list-charset-chars 165 :type 'list-charset-chars
168 'help-args (list (car elt))) 166 'help-args (list (car elt)))
@@ -383,30 +381,22 @@ PC `codepages' and other coded character sets."
383 (interactive (list (read-charset "Charset: "))) 381 (interactive (list (read-charset "Charset: ")))
384 (or (charsetp charset) 382 (or (charsetp charset)
385 (error "Invalid charset: %S" charset)) 383 (error "Invalid charset: %S" charset))
386 (let ((info (charset-info charset))) 384 (help-setup-xref (list #'describe-character-set charset) (interactive-p))
387 (help-setup-xref (list #'describe-character-set charset) (interactive-p)) 385 (with-output-to-temp-buffer (help-buffer)
388 (with-output-to-temp-buffer (help-buffer) 386 (with-current-buffer standard-output
389 (with-current-buffer standard-output 387 (insert "Character set: " (symbol-name charset) ?\n)
390 (insert "Character set: " (symbol-name charset) 388 (insert (charset-description charset) "\n\n")
391 (format " (ID:%d)\n\n" (aref info 0))) 389 (insert "Number of contained characters: "
392 (insert (aref info 13) "\n\n") ; description 390 (if (= (charset-dimension charset) 1)
393 (insert "Number of contained characters: " 391 (format "%d\n" (charset-chars charset))
394 (if (= (aref info 2) 1) 392 (format "%dx%d\n" (charset-chars charset)
395 (format "%d\n" (aref info 3)) 393 (charset-chars charset))))
396 (format "%dx%d\n" (aref info 3) (aref info 3)))) 394 (insert "Final char of ISO2022 designation sequence: ")
397 (insert "Final char of ISO2022 designation sequence: ") 395 (if (> (charset-iso-final-char charset) 0)
398 (if (>= (aref info 8) 0) 396 (insert (format "`%c'\n" (charset-iso-final-char charset)))
399 (insert (format "`%c'\n" (aref info 8))) 397 (insert "not assigned\n"))
400 (insert "not assigned\n")) 398 (insert (format "Width (how many columns on screen): %d\n"
401 (insert (format "Width (how many columns on screen): %d\n" 399 (aref char-width-table (make-char charset)))))))
402 (aref info 4)))
403 (insert (format "Internal multibyte sequence: %s\n"
404 (charset-multibyte-form-string charset)))
405 (let ((coding (plist-get (aref info 14) 'preferred-coding-system)))
406 (when coding
407 (insert (format "Preferred coding system: %s\n" coding))
408 (search-backward (symbol-name coding))
409 (help-xref-button 0 'help-coding-system coding)))))))
410 400
411;;;###autoload 401;;;###autoload
412(defun describe-char-after (&optional pos) 402(defun describe-char-after (&optional pos)