[Top][All Lists]

[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: Lars Ingebrigtsen
Subject: bug#47992: 27; 28; Phase out use of `equal` in `add-hook`, `remove-hook`
Date: Sun, 04 Jul 2021 15:36:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Michael Heerdegen <michael_heerdegen@web.de> writes:

> That's the part I understood.  But what advantage would these offer,
> compared to standard naming?

By "standard naming" you mean "define a function, and then use it in
`add-hook'?"  Experience shows that people avoid doing so (for various
reason), so creating a new form to cater to this use case makes sense.

Especially now when people are using lexical binding more, when it would
make sense to allow people to add/remove/change these closures in hooks
in a convenient manner.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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