diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-07-06 18:04:54 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-07-06 18:04:54 -0400 |
commit | 6b80ff3c465f87a31ccaaf41b2b521075f43632d (patch) | |
tree | 2097ebd905825e6644e1a2b2516580b5ffdfd69d /lisp | |
parent | 3f990c3cccf85e64399bf98ea3e61cb618e8455c (diff) | |
download | emacs-6b80ff3c465f87a31ccaaf41b2b521075f43632d.tar.gz emacs-6b80ff3c465f87a31ccaaf41b2b521075f43632d.tar.bz2 emacs-6b80ff3c465f87a31ccaaf41b2b521075f43632d.zip |
* lisp/emacs-lisp/cl-macs.el (cl-deftype-satisfies): Add `keyword`
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index a3e72c4b00d..6c1426ce5cb 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -3138,23 +3138,29 @@ Of course, we really can't know that for sure, so it's just a heuristic." (cdr (assq sym byte-compile-macro-environment)))))) (pcase-dolist (`(,type . ,pred) - '((null . null) + ;; Mostly kept in alphabetical order. + '((array . arrayp) (atom . atom) - (real . numberp) - (fixnum . integerp) (base-char . characterp) + (boolean . booleanp) + (bool-vector . bool-vector-p) + (buffer . bufferp) (character . natnump) - ;; "Obvious" mappings. - (string . stringp) - (list . listp) + (char-table . char-table-p) (cons . consp) - (symbol . symbolp) + (fixnum . integerp) + (float . floatp) (function . functionp) (integer . integerp) - (float . floatp) - (boolean . booleanp) + (keyword . keywordp) + (list . listp) + (number . numberp) + (null . null) + (real . numberp) + (sequence . sequencep) + (string . stringp) + (symbol . symbolp) (vector . vectorp) - (array . arrayp) ;; FIXME: Do we really want to consider this a type? (integer-or-marker . integer-or-marker-p) )) |