Variable: describe-symbol-backends

describe-symbol-backends is a variable defined in help-mode.el.gz.

Value

((nil cl-find-class
      #[771 "\300!\207"
	    [cl-describe-type]
	    5 "\n\n(fn S B F)"])
 ("ERT test" ert-test-boundp
  #[771 "\300!\207"
	[ert-describe-test]
	5 "\n\n(fn S B F)"])
 (nil fboundp
      #[771 "\300!\207"
	    [describe-function]
	    5 "\n\n(fn S B F)"])
 (nil
  #[257 "\300!\203
�\301!?\206�\211\302N\207"
	[boundp keywordp variable-documentation]
	3 "\n\n(fn SYMBOL)"]
  describe-variable)
 ("face" facep
  #[771 "\300!\207"
	[describe-face]
	5 "\n\n(fn S B F)"]))

Documentation

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.

Source Code

;; Defined in /usr/src/emacs/lisp/help-mode.el.gz
(defvar describe-symbol-backends
  `((nil ,#'fboundp ,(lambda (s _b _f) (describe-function s)))
    (nil
     ,(lambda (symbol)
        (or (and (boundp symbol) (not (keywordp symbol)))
            (get symbol 'variable-documentation)))
     ,#'describe-variable)
    ("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.")