help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Executing function only if another function is defined


From: carlmarcos
Subject: Re: Executing function only if another function is defined
Date: Mon, 25 Jul 2022 13:51:20 +0200 (CEST)


-- 
 Sent with Tutanota, enjoy secure & ad-free emails. 



Jul 25, 2022, 11:45 by incal@dataswamp.org:

> carlmarcos--- via Users list for the GNU Emacs text editor wrote:
>
>>>> (defun docboost (fname doc-boost)
>>>>  "Appends a string to the documentation of a function.
>>>> FNAME     Name of function
>>>> DOC-BOOST Documentation"
>>>>
>>>
>>> Nice!
>>>
>>> It should be automated to appear like that by default and
>>> automatically, and incorrect docstrings shouldn't not just be
>>> "considered" bugs, they should be bugs ...
>>>
>>
>> What don't you agree with exactly? The docstring in the
>> function definition would only be a brief description.
>> If additional information in required, that can be added
>> later, as not to encumber the function with too much text
>> before one can start seeing the implementation.
>>
>
> ?????????
>
I refer you to your remark about automation.  Was it a criticism?


>>> I don't see why not?
>>>
>>
>> In case there is a superior way to test whether the function
>> was defined.
>>
>
> Uhm ... is there a difference between the questions "is
> X a function" and "is X defined as a function"?
>
Because there is also fboundp and symbol-function.




reply via email to

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