emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 1602958 2/3: Support lazy loading for autogenerated


From: Noam Postavsky
Subject: [Emacs-diffs] master 1602958 2/3: Support lazy loading for autogenerated usage docstrings too (Bug#27748)
Date: Wed, 30 Aug 2017 20:42:00 -0400 (EDT)

branch: master
commit 160295867de98241a16f2ede93da7e825ed4406b
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Support lazy loading for autogenerated usage docstrings too (Bug#27748)
    
    * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble):
    Consider any documentation that ended up in code as a docstring (e.g.,
    autogenerated (fn ARG1 ARG2) type things), not just what the user
    passed.
---
 lisp/emacs-lisp/bytecomp.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index dc8839e..c3bb777 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2569,7 +2569,7 @@ not to take responsibility for the actual compilation of 
the code."
           (let ((index
                  ;; If there's no doc string, provide -1 as the "doc string
                  ;; index" so that no element will be treated as a doc string.
-                 (if (not (stringp (car body))) -1 4)))
+                 (if (not (stringp (documentation code t))) -1 4)))
             ;; Output the form by hand, that's much simpler than having
             ;; b-c-output-file-form analyze the defalias.
             (byte-compile-output-docform



reply via email to

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