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

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Sat, 24 Apr 2021 12:12:01 UTC

Severity: normal

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #94 received at 47992 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: Daniel Mendler <mail <at> daniel-mendler.de>, jakanakaevangeli <at> chiru.no,
 monnier <at> iro.umontreal.ca, 47992 <at> debbugs.gnu.org
Subject: Re: bug#47992: 27; 28; Phase out use of `equal` in `add-hook`,
 `remove-hook`
Date: Sun, 04 Jul 2021 15:36:11 +0200
Michael Heerdegen <michael_heerdegen <at> 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




This bug report was last modified 3 years and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.