Function: list-charset-chars
list-charset-chars is an autoloaded, interactive and byte-compiled
function defined in mule-diag.el.gz.
Signature
(list-charset-chars CHARSET)
Documentation
Display a list of characters in character set CHARSET.
Probably introduced at or before Emacs version 21.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/international/mule-diag.el.gz
;;;###autoload
(defun list-charset-chars (charset)
"Display a list of characters in character set CHARSET."
(interactive (list (read-charset "Character set: ")))
(or (charsetp charset)
(error "Invalid character set: %s" charset))
(with-output-to-temp-buffer "*Character List*"
(with-current-buffer standard-output
(if (coding-system-p charset)
;; Useful to be able to do C-u C-x = to find file code, for
;; instance:
(set-buffer-file-coding-system charset))
(setq mode-line-format (copy-sequence mode-line-format))
(let ((slot (memq 'mode-line-buffer-identification mode-line-format)))
(if slot
(setcdr slot
(cons (format " (%s)" charset)
(cdr slot)))))
(setq tab-width 4)
(set-buffer-multibyte t)
(let ((dim (charset-dimension charset))
;; (chars (charset-chars charset))
;; (plane (charset-iso-graphic-plane charset))
;; (plane 1)
(range (plist-get (charset-plist charset) :code-space))
min max min2 max2)
(if (> dim 2)
(error "Can only list 1- and 2-dimensional charsets"))
(insert (format "Characters in the coded character set %s.\n" charset))
(narrow-to-region (point) (point))
(setq min (aref range 0)
max (aref range 1))
(if (= dim 1)
(list-block-of-chars charset 0 min max)
(setq min2 (aref range 2)
max2 (aref range 3))
(let ((i min2))
(while (<= i max2)
(list-block-of-chars charset i min max)
(setq i (1+ i)))))
(put-text-property (point-min) (point-max) 'charset charset)
(widen)))))