emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master b9d6938: Cancel the eldoc timer when switching


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master b9d6938: Cancel the eldoc timer when switching off eldoc mode
Date: Sat, 30 Apr 2016 09:36:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>      (kill-local-variable 'eldoc-message-commands)
>      (remove-hook 'post-command-hook 'eldoc-schedule-timer t)
> -    (remove-hook 'pre-command-hook 'eldoc-pre-command-refresh-echo-area t))))
> +    (remove-hook 'pre-command-hook 'eldoc-pre-command-refresh-echo-area t)
> +    (when eldoc-timer
> +      (cancel-timer eldoc-timer)
> +      (setq eldoc-timer nil)))))
 
Hmm... IIUC the timer is global (i.e. shared by all buffers), whereas
the above code is run when disabling eldoc-mode in one
particular buffer.  So it doesn't look right.


        Stefan



reply via email to

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