Stefan Kangas <stefankan...@gmail.com> writes: > Stefan Kangas <stefankan...@gmail.com> 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. > > If HOOK is equal to FUNCTION, set HOOK to nil. > > Otherwise do nothing.
I like that, adjusted maybe to respect Stefan M's nitpick: If HOOK's value is a list of functions, remove FUNCTION from that list. If HOOK's value is FUNCTION, set HOOK to nil. Otherwise do nothing.