all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jens C. Jensen <jens@subst.net>
Cc: Juri Linkov <juri@linkov.net>,
	 Daniel Mendler <mail@daniel-mendler.de>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [ELPA] New package: marginalia
Date: Wed, 02 Jun 2021 11:10:09 -0400	[thread overview]
Message-ID: <jwv8s3scnho.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87pmx42ukl.fsf@subst.net> (Jens C. Jensen's message of "Wed, 02 Jun 2021 16:46:18 +0200")

> #+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




      parent reply	other threads:[~2021-06-02 15:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28  6:35 [ELPA] New package: marginalia Daniel Mendler
2021-05-28 13:47 ` Stefan Monnier
2021-05-28 13:59   ` Daniel Mendler
2021-05-28 14:08     ` Eli Zaretskii
2021-05-28 18:40   ` Juri Linkov
2021-05-29  8:06     ` Daniel Mendler
2021-06-01 20:54       ` Juri Linkov
2021-06-01 21:07         ` Daniel Mendler
2021-06-02 22:13           ` Juri Linkov
2021-06-11 17:13           ` Juri Linkov
2021-06-17 20:22             ` Juri Linkov
2021-06-02 14:46         ` Jens C. Jensen
2021-06-02 15:07           ` Daniel Mendler
2021-06-03  6:17             ` Jens C. Jensen
2021-06-02 15:10           ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv8s3scnho.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=jens@subst.net \
    --cc=juri@linkov.net \
    --cc=mail@daniel-mendler.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.