aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2015-07-21 16:57:58 +0300
committerDmitry Gutov2015-07-21 16:58:14 +0300
commit7f58daf8166d03c664e5a6d1984dc3afd74e08d2 (patch)
treeb3c44172b02916298767e2f48a281ca992ea3bf8
parent72dc7e78243d0836bfe4e4a1c17caa7eba458e1e (diff)
downloademacs-7f58daf8166d03c664e5a6d1984dc3afd74e08d2.tar.gz
emacs-7f58daf8166d03c664e5a6d1984dc3afd74e08d2.zip
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.
-rw-r--r--lisp/emacs-lisp/eldoc.el2
1 files changed, 1 insertions, 1 deletions
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."
222 (memq eldoc-timer timer-idle-list)) ;FIXME: Why? 222 (memq eldoc-timer timer-idle-list)) ;FIXME: Why?
223 (setq eldoc-timer 223 (setq eldoc-timer
224 (run-with-idle-timer 224 (run-with-idle-timer
225 eldoc-idle-delay t 225 eldoc-idle-delay nil
226 (lambda () 226 (lambda ()
227 (when (or eldoc-mode 227 (when (or eldoc-mode
228 (and global-eldoc-mode 228 (and global-eldoc-mode