diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-02-09 07:45:31 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-02-09 07:45:31 +0100 |
commit | a5254ba16c1bf77b0a1393f35c161d932c1626c1 (patch) | |
tree | 398676af05106cd960eda7a8115907ab9b34afc6 /helm-ring.el | |
parent | ed80c04b4b2845fa13e796ccc57e684a42ca5fe4 (diff) |
Simplify loop in helm-register.
* helm-ring.el (helm-register-action-transformer): Do it.
Diffstat (limited to 'helm-ring.el')
-rw-r--r-- | helm-ring.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/helm-ring.el b/helm-ring.el index 68e5ea1c..79899e8f 100644 --- a/helm-ring.el +++ b/helm-ring.el @@ -411,10 +411,9 @@ the `global-mark-ring' after each new visit." (lambda (c) (and (fboundp 'undo-tree-restore-state-from-register) (undo-tree-restore-state-from-register (car c)))))) for func in (cdr register-and-functions) - for cell = (assq func func-actions) - when cell - do (push (cdr cell) transformer-actions) - finally return (append (nreverse transformer-actions) actions))) + when (assq func func-actions) + collect (cdr it) into transformer-actions + finally return (append transformer-actions actions))) ;;;###autoload (defun helm-mark-ring () |