unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eric Hanchrow <offby1@blarg.net>
To: help-gnu-emacs@gnu.org
Subject: Re: how to search inside functions definition
Date: Thu, 12 Jul 2007 10:30:37 -0700	[thread overview]
Message-ID: <87myy14jia.fsf@offby1.atm01.sea.blarg.net> (raw)
In-Reply-To: 87abu1spcn.fsf@linuxette.i-did-not-set--mail-host-address--so-tickle-me

>>>>> "Camille" == Camille Bourgoin <monsieur.camille@gmail.com> writes:

    Camille> Hello, I want to list all the primitive functions in
    Camille> Emacs with a search within their definitions.  But I
    Camille> don't know how to do this.

I wonder if this is what you want:

    (let ((funcs '()))
      (mapatoms (lambda (a)
                  (if (and (fboundp a)
                           (subrp (symbol-function a)))
                      (setq funcs (cons a funcs)))))
       funcs)

-- 
Like most people, I would like to use the words ''parameters''
and ''behoove'' in the same sentence, but I am not sure how.
        -- A Question for 'Ask Mister Language Person'

  parent reply	other threads:[~2007-07-12 17:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-12 13:50 how to search inside functions definition Camille Bourgoin
2007-07-12 16:03 ` Drew Adams
2007-07-12 17:11 ` Peter Dyballa
2007-07-12 17:30 ` Eric Hanchrow [this message]
     [not found] ` <mailman.3406.1184260368.32220.help-gnu-emacs@gnu.org>
2007-07-12 23:00   ` Camille Bourgoin
2007-07-13  7:50     ` Peter Dyballa
     [not found] ` <mailman.3407.1184261909.32220.help-gnu-emacs@gnu.org>
2007-07-12 23:12   ` Camille Bourgoin
     [not found] <mailman.3401.1184256263.32220.help-gnu-emacs@gnu.org>
2007-07-12 22:56 ` Camille Bourgoin
2007-07-13  0:01   ` Lennart Borgman (gmail)

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87myy14jia.fsf@offby1.atm01.sea.blarg.net \
    --to=offby1@blarg.net \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).