From: Andreas Schwab <schwab@linux-m68k.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Philipp Stephani <p.stephani2@gmail.com>,
Alexander Asteroth <alexander.asteroth@h-brs.de>,
Robert Pluim <rpluim@gmail.com>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: elisp code to list interactive functions
Date: Thu, 04 Nov 2021 18:44:21 +0100 [thread overview]
Message-ID: <87wnlniznu.fsf@igel.home> (raw)
In-Reply-To: <87h7crvoh5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 04 Nov 2021 18:07:34 +0100")
On Nov 04 2021, Lars Ingebrigtsen wrote:
> Philipp Stephani <p.stephani2@gmail.com> writes:
>
>> That's using an internal function, which should not be used outside
>> help.el and can go away at any time. But the following should also
>> work:
>> (cl-loop for symbol being the symbols
>> when (commandp symbol)
>> collect symbol)
>
> Since we're code golfing:
>
> (seq-filter #'commandp obarray)
I don't think mapc does something useful with obarrays.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2021-11-04 17:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-04 8:08 elisp code to list interactive functions Alexander Asteroth
2021-11-04 9:43 ` Po Lu
2021-11-04 9:44 ` Robert Pluim
2021-11-04 10:49 ` Alexander Asteroth
2021-11-04 11:51 ` Philipp Stephani
2021-11-04 16:14 ` Alexander Asteroth
2021-11-04 17:07 ` Lars Ingebrigtsen
2021-11-04 17:32 ` Robert Pluim
2021-11-04 17:44 ` Andreas Schwab [this message]
2021-11-04 20:06 ` Stefan Monnier
2021-11-04 20:15 ` Lars Ingebrigtsen
2021-11-04 20:20 ` Stefan Monnier
2021-11-05 2:08 ` Lars Ingebrigtsen
2021-11-05 0:12 ` Po Lu
2021-11-04 19:34 ` Stefan Monnier
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=87wnlniznu.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=alexander.asteroth@h-brs.de \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=p.stephani2@gmail.com \
--cc=rpluim@gmail.com \
/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.