summaryrefslogtreecommitdiff
path: root/helm-source.el
diff options
context:
space:
mode:
authorChunyang Xu <xuchunyang56@gmail.com>2015-10-20 18:53:06 +0800
committerChunyang Xu <xuchunyang56@gmail.com>2015-10-20 18:55:27 +0800
commit6d0f0ed8d4ed5776eb4b491399ade85d9d0b4629 (patch)
tree28dc19bbd8d3fbb07aacd38842746227e1ffc2cb /helm-source.el
parentc44843482ef618ec196f8d4fa3d964a359999690 (diff)
Set persistent-help to "Do Nothing" if action is identity
Diffstat (limited to 'helm-source.el')
-rw-r--r--helm-source.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/helm-source.el b/helm-source.el
index 1daba4f1..beb737ff 100644
--- a/helm-source.el
+++ b/helm-source.el
@@ -838,6 +838,10 @@ an eieio class."
(helm-aif (or (slot-value source 'persistent-action)
(slot-value source 'action))
(cond ((and (symbolp it)
+ (functionp it)
+ (eq it 'identity))
+ "Do Nothing")
+ ((and (symbolp it)
(boundp it)
(listp (symbol-value it))
(stringp (caar (symbol-value it))))