Subject: bug#19853: Acknowledgement (25.0.50; ElDoc is displayed whether eldoc-mode is enabled or not)

From: Dmitry Gutov <[email-masked]>
Date: Sun, 20 Mar 2016 22:24:20 +0200

On 03/20/2016 09:53 PM, Michael Heerdegen wrote:

> If we want the global mode to push its stuff into the global hook
> bindings, and not into all the local hook bindings in every single
> buffer where the mode is applicable - can we achieve this with
> `define-globalized-minor-mode'?

You could use :after-hook argument.

But it doesn't seem like what we should in do cases like this: what 
would (eldoc-mode -1) do if the globalized mode has modified the global 
hook values? We can't modify those locally.

> And then, I think making `define-globalized-minor-mode' accept a BODY
> argument would be good - a globalized minor mode might want to do some
> global setup.

Again, see the mention of :after-hook in the define-minor-mode 
docstring. It works in the globalized definitions as well.