Function: case-table-get-table
case-table-get-table is a byte-compiled function defined in
case-table.el.gz.
Signature
(case-table-get-table CASE-TABLE TABLE)
Documentation
Return the TABLE of CASE-TABLE.
TABLE can be down, up, eqv or canon.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/case-table.el.gz
(defun case-table-get-table (case-table table)
"Return the TABLE of CASE-TABLE.
TABLE can be `down', `up', `eqv' or `canon'."
(let ((slot-nb (cdr (assq table '((up . 0) (canon . 1) (eqv . 2))))))
(or (if (eq table 'down) case-table)
(char-table-extra-slot case-table slot-nb)
;; Setup all extra slots of CASE-TABLE by temporarily selecting
;; it as the standard case table.
(let ((old (standard-case-table)))
(unwind-protect
(progn
(set-standard-case-table case-table)
(char-table-extra-slot case-table slot-nb))
(or (eq case-table old)
(set-standard-case-table old)))))))