summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-05-19 08:00:39 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-05-19 08:00:39 +0200
commita42616301c172f0ea379c1c38e09e92e11839d76 (patch)
tree13a23b777f10c06b4afef8e8688aa5411faa8dcf /helm.el
parent5a076c745f91c9ec2ab1318dd6e606c409ae05aa (diff)
Fix delay in `helm-run-multi-key-command`.
* helm.el (helm-define-multi-key): Fix docstring example. (helm-run-multi-key-command): Use set.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/helm.el b/helm.el
index e9821826..f0ae5d85 100644
--- a/helm.el
+++ b/helm.el
@@ -47,14 +47,17 @@ If DELAY is specified, switch back to initial function of FUNCTIONS list
after DELAY seconds.
The functions in FUNCTIONS list take no args.
e.g
- \(defun foo ()
- (message \"Run foo\"))
- \(defun bar ()
- (message \"Run bar\"))
- \(defun baz ()
- (message \"Run baz\"))
+ (defun foo ()
+ (interactive)
+ (message \"Run foo\"))
+ (defun bar ()
+ (interactive)
+ (message \"Run bar\"))
+ (defun baz ()
+ (interactive)
+ (message \"Run baz\"))
-\(helm-define-multi-key global-map \"<f5> q\" '(foo bar baz) 2)
+\(helm-define-multi-key global-map (kbd \"<f5> q\") '(foo bar baz) 2)
Each time \"<f5> q\" is pressed, the next function is executed. Waiting
more than 2 seconds between key presses switches back to executing the first
@@ -96,7 +99,7 @@ Run each function in the FUNCTIONS list in turn when called within DELAY seconds
(setq next (helm-iter-next (symbol-value iterator))))
(and next (symbol-value iterator) (call-interactively (nth (1- next) functions)))
(when delay (run-with-idle-timer delay nil (lambda ()
- (setq iterator nil))))))
+ (set iterator nil))))))
(helm-multi-key-defun helm-toggle-resplit-and-swap-windows
"Multi key command to re-split and swap helm window.