bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17582: 24.4.50; once `eldoc-mode' has been enabled, its timer remain


From: Lars Ingebrigtsen
Subject: bug#17582: 24.4.50; once `eldoc-mode' has been enabled, its timer remains on `timer-idle-list'
Date: Fri, 29 Apr 2016 22:07:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Drew Adams <address@hidden> writes:

> I took only a cursory look at the code, after finding out that eldoc's
> idle timer was still getting called after I had turned off `eldoc-mode'.
> I discovered this because I had `debug-on-entry' for `split-string'.
>
> Seems like turning off `eldoc-mode' should not only remove
> `eldoc-schedule-timer' from `post-command-hook' but should also turn off
> that timer, so it does not keep turning eldoc back on.  It seems that
> nothing ever removes `eldoc-timer' from `timer-idle-list' or deletes the
> timer.

I've now made switching eldoc mode off cancel the timer.

If eldoc mode is running in other buffers, the post-command-hook will
ensure that it's started again whenever you do something, so I think
that should be ok...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]