From 7f58daf8166d03c664e5a6d1984dc3afd74e08d2 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 21 Jul 2015 16:57:58 +0300 Subject: 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. --- lisp/emacs-lisp/eldoc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emacs-lisp/eldoc.el') diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 0091cdb848..032cdec066 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -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 -- cgit v1.2.3