emacs-devel
[Top][All Lists]
Advanced

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

Re: Should `indirect-function' be preferred over `fboundp'?


From: Ihor Radchenko
Subject: Re: Should `indirect-function' be preferred over `fboundp'?
Date: Thu, 20 Jul 2023 08:23:00 +0000

Eli Zaretskii <eliz@gnu.org> writes:

> The ELisp manual says:
>
>  -- Function: fboundp symbol
>      This function returns ‘t’ if the symbol has an object in its
>      function cell, ‘nil’ otherwise.  It does not check that the object
>      is a legitimate function.
>
> So this is at least documented.

Yup, but docstring is a lot more deceiving.

    fboundp is a function defined in data.c.
    
    Signature
    (fboundp SYMBOL)
    
    Documentation
    Return t if SYMBOL's function definition is not void.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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