From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.devel Subject: Re: list of elisp primitives ? Date: Sun, 22 Dec 2019 00:21:22 -0300 Message-ID: References: <627F3815-987E-4E82-8118-EE559CA7721F@traduction-libre.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006a01b1059a426888" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="161307"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emacs developers To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 22 04:21:44 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iiroO-000fqT-10 for ged-emacs-devel@m.gmane.org; Sun, 22 Dec 2019 04:21:44 +0100 Original-Received: from localhost ([::1]:43952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiroM-0004Re-RH for ged-emacs-devel@m.gmane.org; Sat, 21 Dec 2019 22:21:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59297) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiroH-0004RU-3Y for emacs-devel@gnu.org; Sat, 21 Dec 2019 22:21:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiroF-0001zf-QJ for emacs-devel@gnu.org; Sat, 21 Dec 2019 22:21:36 -0500 Original-Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:43677) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iiroF-0001xn-Jp for emacs-devel@gnu.org; Sat, 21 Dec 2019 22:21:35 -0500 Original-Received: by mail-pl1-x62b.google.com with SMTP id p27so5774614pli.10 for ; Sat, 21 Dec 2019 19:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZaVrucJVf+Sw/FrpWpXh8D0H0Dz8v36zDMjYNNayAi0=; b=G+HeDuvlfOGo7leWz0xZQ4/I8t4qrnq3qa7ZaHQbbhw42uEqMX6+1GeBmFMG8tvkn2 6LDpzCURizyM/P44FrjFdsE0oU7//+t9gGByFbGXuWZSOAF3Yku5zLPNODVaHV3DkQwS 0H5GSgaxtsIgoeXqGWG6vhscNK49mk2iRBpLnDz0a4D3ickyMcl++avO559Rm4LiwrMF xMiD3kgvq6q7Et5vzgNzA/KfB2JaxX9hT6OlvyIUqEYzlA0jURxkXGrZ2TlBXLCiY6up 4O2g/SDIKs4kPuch2KJDgdD0grDEv2F0113n9z7FbvfHP92/4OpyT00nrsWi39rh7QgL 8CbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZaVrucJVf+Sw/FrpWpXh8D0H0Dz8v36zDMjYNNayAi0=; b=LffXoEWGdgP1bjYZyL/Kbk8UdG7HY09WVqRaAEKkqTvd4hn+dQEV1B/mshRkuBdj8b DL+fLDQl92t/iPiAfsdBt5tzfrwR/rwT+acztjD7s0v944qCA4UkqblX/CvO8SkJfOvq 0ACampUQTpgKw2S2m8e0gdzTAflx4iDS2fvsJJHvl2i1rou3YL4ooIFoAV2SMsZ0wjUR s6MT7cNnmqyepavwxr3qSBrC0Si+OqiTzouvz3cLCRHFXMpkE5C5z05j2cJC3q6sTOEN 41GPTnwkrzcPF9WI9DQtlYUblYNoHqDhAUYGiZn5GOj8iHkHy92QLoaNEav9popkCt8t E5gA== X-Gm-Message-State: APjAAAX7s4HAM9JqhOa1m1XtmBPnle9N03xQmwnyCibbJOgWvEYEDWlq mZAD5IiAVZFhQmIhZY2ZPVhTqWsXZYqe+Lyuf+P2rNIx X-Google-Smtp-Source: APXvYqzjUvs/e7DVb1bKgg86Leyr61bhPuuZ4qCgX7R9Xa1FiwoIZcnBItq1lqRtvC89lNuxNPDswlCq2af18hPoua4= X-Received: by 2002:a17:90a:928a:: with SMTP id n10mr26185666pjo.58.1576984893848; Sat, 21 Dec 2019 19:21:33 -0800 (PST) In-Reply-To: <627F3815-987E-4E82-8118-EE559CA7721F@traduction-libre.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::62b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243553 Archived-At: --0000000000006a01b1059a426888 Content-Type: text/plain; charset="UTF-8" Try this: (defun fboundp-and-subrp (symbol) (and (fboundp symbol) (subrp (symbol-function symbol)))) (setq my-primitives (apropos-internal "^.*$" 'fboundp-and-subrp)) (defun my-describe (symbol) (format "(describe-function '%S)\n" symbol)) (insert (mapconcat 'my-describe my-primitives "")) On Sun, 22 Dec 2019 at 00:01, Jean-Christophe Helary < jean.christophe.helary@traduction-libre.org> wrote: > Is there a list of elisp primitive functions defined in C somewhere ? > > I was thinking that because of the sheer amount of functions in the elisp > reference, it might be much easier to start programming with the primitives > to understand how elisp works at its core, and then climb the ladder when > need arises... > > > > Jean-Christophe Helary > ----------------------------------------------- > http://mac4translators.blogspot.com @brandelune > > > > --0000000000006a01b1059a426888 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Try this:

(defun fboundp-and-subrp (sym= bol)
=C2=A0 (and (fboundp symbol) (subrp (symbol-function symbol))))
=
(setq my-primitives (apropos-internal "^.*$" 'fboundp-and= -subrp))

(defun my-describe (symbol) (format "(describe-functio= n '%S)\n" symbol))

(insert (mapconcat 'my-describe my-p= rimitives ""))


On Sun, 22 Dec 2019 at 00:= 01, Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org> wrot= e:
Is there a li= st of elisp primitive functions defined in C somewhere ?

I was thinking that because of the sheer amount of functions in the elisp r= eference, it might be much easier to start programming with the primitives = to understand how elisp works at its core, and then climb the ladder when n= eed arises...



Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune



--0000000000006a01b1059a426888--