aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2017-06-03 17:18:06 +0100
committerWilfred Hughes <me@wilfred.me.uk>2017-06-03 17:18:06 +0100
commit80d97bcb4e5b4dbabda93cd2296bd40d76dad50d (patch)
tree8430ecf122758b41bcd4763e140ce82750016a34
parente9d0a13db8a0f7eeb7e8eebef9b63584508a55d6 (diff)
Separate command for describing interactive functions
-rw-r--r--helpful.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/helpful.el b/helpful.el
index db68d5e..9e381df 100644
--- a/helpful.el
+++ b/helpful.el
@@ -455,6 +455,13 @@ For example, \"(some-func FOO &optional BAR)\"."
(switch-to-buffer (helpful--buffer symbol))
(helpful-update))
+(defun helpful-command (symbol)
+ "Show help for interactive function named SYMBOL."
+ (interactive
+ (list (helpful--read-symbol "Command:" #'commandp)))
+ (switch-to-buffer (helpful--buffer symbol))
+ (helpful-update))
+
(defun helpful-macro (symbol)
"Show help for macro named SYMBOL."
(interactive