Subject: Re: 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 21:27:09 +0200

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

> Turning on the globalized local hook would not have an immediate effect
> on the affected buffers I think.

Not sure what you mean. Globalized local hook?

If globalized mode was off, and you turn it on, it turns on the local 
mode in all relevant buffers, right away.

Just try it with e.g. global-font-lock-mode.

> Yes, in your recipe in the bug description.  My question was what you
> meant with that.

Displaying, or not displaying, function signatures in the echo area.

>> - The behavior is surprising if you're used to globalized minor modes.
>
> What behavior do you mean, apart from the next point?

Compare with font-lock-mode and global-font-lock-mode.

> That's a valid point, the current implementation doesn't cover this
> case.  I think
>
>   (setq-local global-eldoc-mode nil)
>
> should work, but it looks weird, and it should not be necessary to
> modify a variable after we already have two modes.

Yes, it looks silly, and might even break some expectations of the minor 
mode machinery.