GNU bug report logs - #19853
25.0.50; ElDoc is displayed whether eldoc-mode is enabled or not

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Fri, 13 Feb 2015 11:57:01 UTC

Severity: normal

Found in version 25.0.50

Fixed in version 26.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 19853 <at> debbugs.gnu.org
Subject: bug#19853: Acknowledgement (25.0.50; ElDoc is displayed whether eldoc-mode is enabled or not)
Date: Sun, 20 Mar 2016 23:15:30 +0200
On 03/20/2016 11:10 PM, Michael Heerdegen wrote:

> Yes.  I think turning `globalized-eldoc-mode' could change the default
> value of `eldoc-mode', while the local `eldoc-mode' changes the local
> value (as it does now).

That's not how globalized minor modes work.

> But that would lead to another problem: if the user has both modes off,
> then turns on the local mode in some buffer, and after that turns on the
> global mode as well, we have the stuff in both the global and the local
> hook bindings.

Nope: globalized mode should only turn on the local mode in appropriate 
buffers. And it would, in turn, only modify the local parts of the hook 
in each of the buffers.

> Hmm, I think the only way out would be to add the stuff to the global
> hook bindings unconditionally when eldoc is loaded - no matter whether
> the global mode is on or not, and never remove it.  And use only one
> (buffer local) variable for controlling, `eldoc-mode', that the local
> mode sets locally.  The variable `global-eldoc-mode' would not appear in
> the code any more.  `global-eldoc-mode' would become a trivial
> globalized minor mode that would only turn the local value of
> `eldoc-mode' in all buffers.  Would that make sense?

Sounds like a viable alternative, yes.




This bug report was last modified 8 years and 50 days ago.

Previous Next


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