]> code.delx.au - gnu-emacs/commitdiff
Make eldoc timer non-repeatable
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 21 Jul 2015 13:57:58 +0000 (16:57 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 21 Jul 2015 13:58:14 +0000 (16:58 +0300)
* 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

index 0091cdb84846d7c84eacf104f506f4c4f6350243..032cdec066d7f9254ad78170d19a023a3d7e9b6e 100644 (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