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

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

Re: Refer to List of Arguments in Emacs Lisp Function


From: Barry Margolin
Subject: Re: Refer to List of Arguments in Emacs Lisp Function
Date: Thu, 13 Nov 2014 14:20:07 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <mailman.13561.1415897958.1147.help-gnu-emacs@gnu.org>,
 Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

> On 13.11.2014 09:35, Alexander Shukaev wrote:
> >>
> >> (defun move (&rest args)
> >>    (apply #'do-move args)))
> >>
> >
> > I'm aware of that, but that's not what I'm looking for... I'm interested in
> > required arguments in the first place.
> >
> 
> What about that way:
> 
> (cadr (symbol-function 'MY-FUNCTION))

That will return the names of the arguments, not the list of actual 
arguments in a call.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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