help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Functions using limited set of internals


From: Artist
Subject: Re: Functions using limited set of internals
Date: 27 Feb 2003 17:43:21 -0800

David Kastrup <dak@gnu.org> wrote in message 
news:<x5y941g186.fsf@lola.goethe.zz>...
> googleartist@yahoo.com (Artist) writes:
> 
> > googleartist@yahoo.com (Artist) writes:
> > 
> > > Hi,
> > >  I have been using emacs now for over an year.
> > >  and now I like to know how I can do some work with lisp.
> > >  
> > >  How I can find the built-in functions for lisp:
> > 
> > (let ((internals ()))
> >   (mapatoms (lambda (sym)
> >               (when (and (functionp sym) (subrp (symbol-function
> > sym)))
> >                 (push sym internals))))
> >   (insert (format "%S\n" internals)))
> > 
> > I've not found any predicate to distinguish between built-in functions
> > and special forms.
> 
> subr-arity

Hi,
 That's already been answered in another thread.
 Built-in functions and Special forms.
 What I am looking for is

1. Get name of all the functions. (defined with defun)
2. Find out all the 'built-in function' or 'special forms' it uses.

from 1 and 2 we have a table:
like:


defun frame-width (&optional frame) 
uses: cdr, assq, frame-parameters
defun set-border-color (color-name) 
uses: interactive, list, face-menu-read-color,
modify-frame-parameters,selected-frame, cons

etc..

Then it should go thro' my learned list of built-in and other
functions and special forms to match the above table to find the entry
for 'defun functions'.

This is to assist the progressive learning for  the command of 'what
is being learnt'.

Thanks,
Artist.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]