Function: describe-char-categories
describe-char-categories is a byte-compiled function defined in
descr-text.el.gz.
Signature
(describe-char-categories CATEGORY-SET)
Source Code
;; Defined in /usr/src/emacs/lisp/descr-text.el.gz
;; Return a nicely formatted list of categories; extended category
;; description is added to the category name as a tooltip
(defsubst describe-char-categories (category-set)
(let ((mnemonics (category-set-mnemonics category-set)))
(unless (equal mnemonics "")
(list (mapconcat
(lambda (x)
(let* ((c (category-docstring x))
(doc (if (string-match "\\`\\(.*?\\)\n" c)
(propertize (match-string 1 c)
'help-echo
(substring c (1+ (match-end 1))))
c)))
(format "%c:%s" x doc)))
mnemonics ", ")))))