]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.
authorGlenn Morris <rgm@gnu.org>
Fri, 1 May 2015 17:39:23 +0000 (13:39 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 1 May 2015 17:39:23 +0000 (13:39 -0400)
lisp/emacs-lisp/pcase.el

index 978c3f0dd303d9adac3aff90161ca1c60e14951b..b4bf6404bef530a18308a7536ffe28d9e57d5df7 100644 (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