Subject: Re: bug#72915: Docstrings of add-hook and remove-hook improvement?

From: Stefan Monnier <[email-masked]>
Date: Sun, 01 Sep 2024 10:17:43 -0400

>> The wording in the manual is probably all that is needed here:
>>
>>     This function removes FUNCTION from the hook variable HOOK.
>
> BTW.  Here's another idea:
>
>     If HOOK is a list of functions, remove FUNCTION from that list.
>
>     If HOOK is equal to FUNCTION, set HOOK to nil.
>
>     Otherwise do nothing.

Nit pick: a hook *is* not a function or a list of functions.
It only *holds* such things.

        Stefan