emacs-devel
[Top][All Lists]
Advanced

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

Re: Arbitrary function: find the number(s) of expected arguments


From: Philipp Stephani
Subject: Re: Arbitrary function: find the number(s) of expected arguments
Date: Sat, 19 Mar 2016 14:26:49 +0000



Paul Pogonyshev <address@hidden> schrieb am Sa., 19. März 2016 um 13:26 Uhr:
And to make it even weirder (from `dash.el'):

    (defalias '-first-item 'car
      "Return the first item of LIST, or nil on an empty list.")

    (subr-arity (symbol-function '-first-item))  =>  (wrong-type-argument subrp car)

This at least can be made to work by using indirect-function instead of symbol-function. 

reply via email to

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