* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.

This commit is contained in:
Glenn Morris 2015-05-01 13:39:23 -04:00
parent 85eb934e96
commit d6b91bf5d4

View file

@ -164,6 +164,9 @@ Currently, the following patterns are provided this way:"
(defun pcase--make-docstring ()
(let* ((main (documentation (symbol-function 'pcase) 'raw))
(ud (help-split-fundoc main 'pcase)))
;; So that eg emacs -Q -l cl-lib --eval "(documentation 'pcase)" works,
;; where cl-lib is anything using pcase-defmacro.
(require 'help-fns)
(with-temp-buffer
(insert (or (cdr ud) main))
(mapatoms