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: Eli Zaretskii
Subject: Re: Arbitrary function: find the number(s) of expected arguments
Date: Sat, 19 Mar 2016 19:50:47 +0200

> From: Michael Heerdegen <address@hidden>
> Cc: address@hidden
> Date: Sat, 19 Mar 2016 18:43:09 +0100
> 
> Eli Zaretskii <address@hidden> writes:
> 
> > I disagree with this conclusion.  The fact is that the Emacs Lisp
> > interpreter does know how to produce a clear answer.
> 
> Imagine `f' accepts, say, three arguments.  Now, let's
> 
> (advice-add 'f :around
>             (defun my-f-around-advice (orig-f &rest args)
>               (let ((some-value (g args)))
>                 (if (function-p (car-safe some-value))
>                     (apply (car some-value) (cdr some-value))
>                   (if (h args)
>                       (k args)
>                     (apply orig-f some-value))))))
> 
> What should (function-arity #'f) return?

How is that relevant to the cited text?

And what is the purpose of continuing this argument?



reply via email to

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