[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: marginalia
From: |
Stefan Monnier |
Subject: |
Re: [ELPA] New package: marginalia |
Date: |
Wed, 02 Jun 2021 11:10:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> #+begin_src emacs-lisp
> (cond
> ((commandp sym) 'command)
> ((macrop sym) 'macro)
> ((functionp sym) 'function)
> ((booleanp sym) 'boolean)
> ((keywordp sym) 'keyword)
> ((keymapp (symbol-value sym)) 'keymap)
> ((facep sym) 'face)
> ((boundp sym) 'variable)
> ((symbolp sym) 'symbol))
> #+end_src
>
> It has worked fine for my use-case thus far, but is neither complete nor
> robust enough for documentation, as Daniel pointed out emacs-lisp is
> a Lisp-2 - the above code completely misses this point.
Not just "2": `facep` shows there's more than 2 namespaces.
Stefan