Skip to content

Commit

Permalink
Don't use time in action
Browse files Browse the repository at this point in the history
* helm-descbinds.el (helm-descbinds-action:execute): Do it.
  • Loading branch information
Thierry Volpiatto committed Apr 12, 2018
1 parent e7a7eaa commit cc000b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helm-descbinds.el
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ This function will be called with two arguments KEY and BINDING."
((stringp x)
(insert x))
((commandp x)
(run-at-time 0.01 nil (lambda (command) (call-interactively command)) x)))))
;; Using a timer here trigger a timer error with help-for-help
;; (and perhaps others that use a timer themselves), so use
;; directly `call-interactively'.
(call-interactively x)))))

(defun helm-descbinds-action:describe (candidate)
"An action that describe selected CANDIDATE function."
Expand Down

0 comments on commit cc000b1

Please sign in to comment.