Fix keyword type check in doom-keyword-name

This commit is contained in:
Henrik Lissner 2019-07-24 15:26:43 +02:00
parent f25ec72253
commit b8837ac022
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -136,7 +136,7 @@ list is returned as-is."
(defun doom-keyword-name (keyword) (defun doom-keyword-name (keyword)
"Returns the string name of KEYWORD (`keywordp') minus the leading colon." "Returns the string name of KEYWORD (`keywordp') minus the leading colon."
(declare (pure t) (side-effect-free t)) (declare (pure t) (side-effect-free t))
(cl-check-type :test keyword) (cl-check-type keyword keyword)
(substring (symbol-name keyword) 1)) (substring (symbol-name keyword) 1))
(defmacro doom-log (format-string &rest args) (defmacro doom-log (format-string &rest args)