emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d6b91bf 1/2: * lisp/emacs-lisp/pcase.el (pcase--mak


From: Glenn Morris
Subject: [Emacs-diffs] master d6b91bf 1/2: * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.
Date: Fri, 01 May 2015 17:40:36 +0000

branch: master
commit d6b91bf5d4fe26dc97f967c875881d49c8da88ad
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.
---
 lisp/emacs-lisp/pcase.el |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el
index 978c3f0..b4bf640 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]