emacs-devel
[Top][All Lists]
Advanced

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

Re: master c8a2af3037 1/3: Add new function function-alias-p


From: Stefan Monnier
Subject: Re: master c8a2af3037 1/3: Add new function function-alias-p
Date: Sat, 15 Jan 2022 09:39:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>> An the semantics would be kinda odd -- in the non-alias case, we'd still
>>> return nil, right?
>> No, I was thinking of returning the content of `symbol-function`.
>> So, it basically returns a more explicit info than `indirect-function`.
> My feeling is that people that want to get at the function object will
> use `indirect-function'.  Callers that want both the intermediate chain
> and the final object are pretty rare, I think.

Could be.  I was thinking of cases like `interactive-form`, `commandp`,
and `documentation` where we usually want to fetch the info off of the
function object, but we need to check some symbol property along the way
in case it shadows the function's own value.

These functions currently start with `indirect-function` to rule out the
presence of cycles and then proceed to loop through the aliases (if
any).


        Stefan




reply via email to

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