From d6b91bf5d4fe26dc97f967c875881d49c8da88ad Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 1 May 2015 13:39:23 -0400 Subject: [PATCH] * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns. --- lisp/emacs-lisp/pcase.el | 3 +++ 1 file changed, 3 insertions(+) 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:" (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 -- 2.39.2