From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Camille Bourgoin Newsgroups: gmane.emacs.help Subject: Re: how to search inside functions definition Date: Fri, 13 Jul 2007 01:12:21 +0200 Organization: Guest of ProXad - France Message-ID: <87wsx5qkru.fsf@linuxette.i-did-not-set--mail-host-address--so-tickle-me> References: <87abu1spcn.fsf@linuxette.i-did-not-set--mail-host-address--so-tickle-me> Reply-To: Camille Bourgoin NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184283697 7565 80.91.229.12 (12 Jul 2007 23:41:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 23:41:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 01:41:36 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I98Hv-0002sp-17 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jul 2007 01:41:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I98Hu-0003Ox-Kk for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2007 19:41:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp11-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:ONYi12rDIUmwsKtORe7u9Y3aYGE= Original-Lines: 50 Original-NNTP-Posting-Date: 13 Jul 2007 01:12:10 MEST Original-NNTP-Posting-Host: 82.235.33.35 Original-X-Trace: 1184281930 news-1.free.fr 22409 82.235.33.35:55320 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:150072 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45658 Archived-At: Eric Hanchrow writes: >>>>>> "Camille" == Camille Bourgoin 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' > > > Yes ! it seems to be good, there is the result (very long) : (read load-average delete-window internal-lisp-face-attribute-values minibuffer-depth search-backward-regexp identity bobp command-execute user-full-name next-single-char-property-change set-time-zone-rule quit-process process-contact % directory-files nlistp copy-marker terminal-coding-system * + downcase image-size - buffer-base-buffer type-of / eobp overlay-get skip-chars-forward frame-char-width < = > get internal-set-font-selection-order kill-buffer continue-process ... etc ... etc ... etc ... etc ... process-command x-open-connection region-beginning encode-big5-char generic-character-list plist-put while elt invocation-directory widget-apply line-end-position) thank you :) i'm going to examinate the code in order to understood what it does ;) -- Camille "Mesmento" Bourgoin jabber : mr.camille@im.apinc.org web : http://jbbourgoin.free.fr