[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ELisp function prototypes and local function name
From: |
Ted Zlatanov |
Subject: |
Re: ELisp function prototypes and local function name |
Date: |
Wed, 06 Apr 2011 21:27:50 -0500 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
On Thu, 07 Apr 2011 09:25:12 +0900 "Stephen J. Turnbull" <address@hidden>
wrote:
SJT> Ted Zlatanov writes:
>> That seems nasty, taking text documentation and splitting it back to get
>> the function arguments.
SJT> function-arglist?
`help-function-arglist' is almost there...
(format "%S" (help-function-arglist 'mapc))
=> (arg1 arg2 &rest rest)
But it doesn't correspond to the advertised prototype
"(mapc FUNCTION SEQUENCE)" and loses the argument names.
It uses `subr-arity' which I can examine, but that doesn't tell me the
names of the arguments either.
Ted