mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 23:10:47 -08:00
* 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 ()
|
(defun pcase--make-docstring ()
|
||||||
(let* ((main (documentation (symbol-function 'pcase) 'raw))
|
(let* ((main (documentation (symbol-function 'pcase) 'raw))
|
||||||
(ud (help-split-fundoc main 'pcase)))
|
(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
|
(with-temp-buffer
|
||||||
(insert (or (cdr ud) main))
|
(insert (or (cdr ud) main))
|
||||||
(mapatoms
|
(mapatoms
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue