1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00

Make eldoc timer non-repeatable

* lisp/emacs-lisp/eldoc.el (eldoc-schedule-timer): Make the timer
non-repeatable.  Since it's on post-command hook, that just wasted
CPU cycles.
This commit is contained in:
Dmitry Gutov 2015-07-21 16:57:58 +03:00
parent 72dc7e7824
commit 7f58daf816

View File

@ -222,7 +222,7 @@ expression point is on."
(memq eldoc-timer timer-idle-list)) ;FIXME: Why?
(setq eldoc-timer
(run-with-idle-timer
eldoc-idle-delay t
eldoc-idle-delay nil
(lambda ()
(when (or eldoc-mode
(and global-eldoc-mode