summaryrefslogtreecommitdiff
path: root/helm-source.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-05-21 15:21:26 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-05-21 15:21:26 +0200
commit0715c74953b4a49a7f0defc7911da658e3eef783 (patch)
tree6ec9bbdced94f76f7e43a82f85ffbf03f96d8f45 /helm-source.el
parente2b4fc6c21cc8a07cedc917720227d77a8b04fcd (diff)
Check for symbol or function in *-add-action-to-source-if thx Michael (#1028).
* helm-source.el (helm-source-add-action-to-source-if): Do it. * helm.el (helm-add-action-to-source-if): Do it.
Diffstat (limited to 'helm-source.el')
-rw-r--r--helm-source.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helm-source.el b/helm-source.el
index 147a3195..4be60dd0 100644
--- a/helm-source.el
+++ b/helm-source.el
@@ -948,9 +948,9 @@ an eieio class."
(helm-append-at-nth
actions (quote ,new-action) ,index))
(t actions)))))
- (when (functionp actions)
+ (when (or (symbolp actions) (functionp actions))
(set-slot-value source 'action (list (cons "Default action" actions))))
- (when (functionp action-transformers)
+ (when (or (symbolp action-transformers) (functionp action-transformers))
(setq action-transformers (list action-transformers)))
(set-slot-value
source