* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.
This commit is contained in:
parent
85eb934e96
commit
d6b91bf5d4
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue