Function: register-type
register-type is a byte-compiled function defined in register.el.gz.
Signature
(register-type REGISTER)
Documentation
Return REGISTER type.
Register type that can be returned is one of the following:
- string
- number
- marker
- buffer
- file
- file-query
- window
- frame
- kmacro
One can add new types to a specific command by defining a new cl-defmethod
matching that command. Predicates for type in new cl-defmethod should
satisfy cl-typep, otherwise the new type should be defined with
cl-deftype.
Source Code
;; Defined in /usr/src/emacs/lisp/register.el.gz
(defun register-type (register)
"Return REGISTER type.
Register type that can be returned is one of the following:
- string
- number
- marker
- buffer
- file
- file-query
- window
- frame
- kmacro
One can add new types to a specific command by defining a new `cl-defmethod'
matching that command. Predicates for type in new `cl-defmethod' should
satisfy `cl-typep', otherwise the new type should be defined with
`cl-deftype'."
;; Call register--type against the register value.
(register--type (if (consp (cdr register))
(cadr register)
(cdr register))))