[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#72915: Docstrings of add-hook and remove-hook improvement?
From: |
Stefan Monnier |
Subject: |
bug#72915: Docstrings of add-hook and remove-hook improvement? |
Date: |
Sun, 01 Sep 2024 10:17:43 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> 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