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

2024-09-01 Thread Tomas Nordin
Stefan Kangas writes: > Stefan Kangas writes: > >> 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. > > I

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

2024-08-31 Thread Tomas Nordin
Hello List In bug#70820 August 14, Stefan mentions that it is a common confusion to think of the functions in a hook as hooks. It got my attention because I belong to the confused ones every second year or so adding or removing functions from a hook. I suggest the provided patch as a small improv