From: Dmitry Gutov Date: Tue, 21 Jul 2015 13:57:58 +0000 (+0300) Subject: Make eldoc timer non-repeatable X-Git-Tag: emacs-25.0.90~1453 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f58daf8166d03c664e5a6d1984dc3afd74e08d2;p=emacs.git 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. --- diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 0091cdb8484..032cdec066d 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