diff options
author | Chunyang Xu <xuchunyang56@gmail.com> | 2015-10-20 17:43:23 +0800 |
---|---|---|
committer | Chunyang Xu <xuchunyang56@gmail.com> | 2015-10-20 17:44:53 +0800 |
commit | c44843482ef618ec196f8d4fa3d964a359999690 (patch) | |
tree | 7c293a1c89ce85739193d85bee5a8992b4303623 /helm-source.el | |
parent | 0c3dfa29cd17edfb5fd97a4711c72f2422774ca2 (diff) |
Improve persistent-help when action slot is variable
Re #1233
Diffstat (limited to 'helm-source.el')
-rw-r--r-- | helm-source.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helm-source.el b/helm-source.el index 21103d7a..1daba4f1 100644 --- a/helm-source.el +++ b/helm-source.el @@ -837,7 +837,12 @@ an eieio class." (concat "\\<helm-map>\\[helm-execute-persistent-action]: " (helm-aif (or (slot-value source 'persistent-action) (slot-value source 'action)) - (cond ((or (symbolp it) (functionp it)) + (cond ((and (symbolp it) + (boundp it) + (listp (symbol-value it)) + (stringp (caar (symbol-value it)))) + (caar (symbol-value it))) + ((or (symbolp it) (functionp it)) (helm-symbol-name it)) ((listp it) (let ((action (car it))) |