From 80d97bcb4e5b4dbabda93cd2296bd40d76dad50d Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 3 Jun 2017 17:18:06 +0100 Subject: Separate command for describing interactive functions --- helpful.el | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.0