GNU bug report logs -
#25581
25.1; Incorrect statement in (elisp) `Hooks'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 30 Jan 2017 16:52:02 UTC
Severity: minor
Tags: fixed
Found in version 25.1
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #56 received at 25581 <at> debbugs.gnu.org (full text, mbox):
Please see my reply to Lars. I hope I've made things
clear about this. There are two uses of vars named
`*-function': (1) as a hook, (2) as a single function
to call.
The first use of such a name is, I think, legacy.
I think such vars should be renamed to either
`*-hook' or `*-functions', depending on whether they
are normal or abnormal.
But until they all are (and probably even then, since
they could exist in 3rd-party code), the doc should
cover them.
If I'm right that they are only legacy, and should
be renamed (to be confirmed by some old-timer such
as RMS), then the doc could make this clear.
`add-hook' and `run-hooks' work fine with such vars.
The doc about that is not wrong. (Only the cited
paragraph is wrong.)
But if I'm right about the only-legacy thing, it
would probably help for the doc to point out that a
hook named `*-function' should probably be renamed
(to `*-hook' or `*-functions', depending on whether
it is normal or abnormal). And Emacs itself should
in that case have its own such hooks renamed. But
this understanding should be confirmed first.
This bug report was last modified 4 years and 285 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.