diff options
Diffstat (limited to 'helpful.el')
| -rw-r--r-- | helpful.el | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -32,6 +32,7 @@ ;; * helpful-function ;; * helpful-command ;; * helpful-macro +;; * helpful-callable ;; * helpful-variable ;; * helpful-at-point ;; @@ -707,6 +708,15 @@ For example, \"(some-func FOO &optional BAR)\"." (switch-to-buffer (helpful--buffer symbol t)) (helpful-update)) +(defun helpful-callable (symbol) + "Show help for function or macro named SYMBOL. + +See also `helpful-macro' and `helpful-function'." + (interactive + (list (helpful--read-symbol "Function/macro: " #'fboundp))) + (switch-to-buffer (helpful--buffer symbol t)) + (helpful-update)) + (defun helpful--variable-p (symbol) "Return non-nil if SYMBOL is a variable." (or (get symbol 'variable-documentation) |
