aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2015-05-01 13:39:23 -0400
committerGlenn Morris2015-05-01 13:39:23 -0400
commitd6b91bf5d4fe26dc97f967c875881d49c8da88ad (patch)
tree578bc12590def8e9542830861cc86472e48301cf
parent85eb934e96bf88960f6e48ddc6e353a69a4a3d89 (diff)
downloademacs-d6b91bf5d4fe26dc97f967c875881d49c8da88ad.tar.gz
emacs-d6b91bf5d4fe26dc97f967c875881d49c8da88ad.zip
* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.
-rw-r--r--lisp/emacs-lisp/pcase.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el
index 978c3f0dd30..b4bf6404bef 100644
--- a/lisp/emacs-lisp/pcase.el
+++ b/lisp/emacs-lisp/pcase.el
@@ -164,6 +164,9 @@ Currently, the following patterns are provided this way:"
164(defun pcase--make-docstring () 164(defun pcase--make-docstring ()
165 (let* ((main (documentation (symbol-function 'pcase) 'raw)) 165 (let* ((main (documentation (symbol-function 'pcase) 'raw))
166 (ud (help-split-fundoc main 'pcase))) 166 (ud (help-split-fundoc main 'pcase)))
167 ;; So that eg emacs -Q -l cl-lib --eval "(documentation 'pcase)" works,
168 ;; where cl-lib is anything using pcase-defmacro.
169 (require 'help-fns)
167 (with-temp-buffer 170 (with-temp-buffer
168 (insert (or (cdr ud) main)) 171 (insert (or (cdr ud) main))
169 (mapatoms 172 (mapatoms