Commit d6b91bf5 authored by Glenn Morris's avatar Glenn Morris

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

parent 85eb934e
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment