summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2018-01-22 22:00:55 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2018-01-22 22:00:55 -0500
commit0a75af915653bd8927f92be420603725a7e3c744 (patch)
treebfedf0fb314c5fa622f15ccede2567291bef39f9 /lisp/help-mode.el
parent2df391c202eeee0d575980555443a5e81b8f6b1f (diff)
downloademacs-0a75af915653bd8927f92be420603725a7e3c744.tar.gz
* lisp/emacs-lisp/ert.el (describe-symbol-backends): Add ourselves
(ert-describe-test): Return the description text as well. Remove left over version check. * lisp/help-mode.el (describe-symbol-backends): Add docstring.
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index ee481cf43f6..4fb3fb85c99 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -421,7 +421,15 @@ it does not already exist."
(or (and (boundp symbol) (not (keywordp symbol)))
(get symbol 'variable-documentation)))
,#'describe-variable)
- ("face" ,#'facep ,(lambda (s _b _f) (describe-face s)))))
+ ("face" ,#'facep ,(lambda (s _b _f) (describe-face s))))
+ "List of providers of information about symbols.
+Each element has the form (NAME TESTFUN DESCFUN) where:
+ NAME is a string naming a category of object, such as \"type\" or \"face\".
+ TESTFUN is a predicate which takes a symbol and returns non-nil if the
+ symbol is such an object.
+ DESCFUN is a function which takes three arguments (a symbol, a buffer,
+ and a frame), inserts the description of that symbol in the current buffer
+ and returns that text as well.")
;;;###autoload
(defun help-make-xrefs (&optional buffer)