GNU bug report logs - #36903
27.0.50; gnus registry vs. debbugs

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Sat, 3 Aug 2019 07:13:02 UTC

Severity: normal

Found in version 27.0.50

Done: Eric Abrahamsen <eric <at> ericabrahamsen.net>

Bug is archived. No further changes may be made.

Full log


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

From: Eric Abrahamsen <eric <at> ericabrahamsen.net>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#36903: 27.0.50; gnus registry vs. debbugs
Date: Sat, 03 Aug 2019 18:41:54 -0700
Noam Postavsky <npostavs <at> gmail.com> writes:

> Eric Abrahamsen <eric <at> ericabrahamsen.net> writes:
>
>>> Huh, right after the definition of `gnus-registry-unload-hook' is this
>>> line:
>>>
>>> (add-hook 'gnus-registry-unload-hook 'gnus-registry-unload-hook)
>>
>> Added by RMS in 2004! Still don't see what it's supposed to do --
>> there's no such hook, and it's never called.
>
> It could be called by unload-feature, though it would be better to
> rename it gnus-registry-unload-function instead:
>
>     (defun unload-feature (feature &optional force)
>       [...]
>       (let* ([...]
>              (unload-hook (intern-soft (concat name "-unload-hook")))
>              (unload-func (intern-soft (concat name "-unload-function"))))
>           [...]
>           ;; This is obsolete; FEATURE-unload-function should be used now.
>           (run-hooks unload-hook)
>
> See also (info "(elisp) Unloading")

Something new every day! Thanks for this tip.





This bug report was last modified 5 years and 277 days ago.

Previous Next


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