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

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

bug#47992: 27; 28; Phase out use of `equal` in `add-hook`, `remove-hook`


From: Richard Stallman
Subject: bug#47992: 27; 28; Phase out use of `equal` in `add-hook`, `remove-hook`
Date: Wed, 07 Jul 2021 19:57:55 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > If they are equal, why do they need to be distinguished?

If file A adds such a hook, then file B adds one that is the same,
then you unload file B, testing for "the same hook" would
leave none.  But A won't work right without its hook.

My scheme would put on two distinct but equivalent hooks,
then delete one of them, leaving the other in place.
In some cases, that's what you want.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







reply via email to

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