]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/help-fns.el (describe-function-1): Handle autoloads w/o docstrings.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 11 Oct 2012 20:11:23 +0000 (16:11 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 11 Oct 2012 20:11:23 +0000 (16:11 -0400)
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Move autoload...
* lisp/emacs-lisp/cl-macs.el (cl--defsubst-expand): ...here.

lisp/ChangeLog
lisp/emacs-lisp/cl-lib.el
lisp/emacs-lisp/cl-macs.el
lisp/help-fns.el

index 8d9c85c13260790d6ba05d3e6dacf50c112ffb5d..97e9965c6b9c0b034d48a21bd30bef2a6b0b6077 100644 (file)
@@ -1,5 +1,9 @@
 2012-10-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * help-fns.el (describe-function-1): Handle autoloads w/o docstrings.
+       * emacs-lisp/cl-lib.el (cl--defsubst-expand): Move autoload...
+       * emacs-lisp/cl-macs.el (cl--defsubst-expand): ...here.
+
        * emacs-lisp/bytecomp.el (byte-compile-eval): Adjust to long-ago
        changes to the format of load-history.
 
index 2eda628e2623c6fd2467aa1ec79a3351e0007675..802d25b097af654787e7e4aa871449acde98da0a 100644 (file)
@@ -727,9 +727,6 @@ If ALIST is non-nil, the new pairs are prepended to it."
 
 ;;;###autoload
 (progn
-  ;; Make sure functions defined with cl-defsubst can be inlined even in
-  ;; packages which do not require CL.
-  (autoload 'cl--defsubst-expand "cl-macs")
   ;; Autoload, so autoload.el and font-lock can use it even when CL
   ;; is not loaded.
   (put 'cl-defun    'doc-string-elt 3)
index 592c33d21c546f6b40d5e5691ea620346d19663f..1a701e9047a97d49d3cb23f556a494a3cc9e1492 100644 (file)
@@ -2595,6 +2595,9 @@ surrounded by (cl-block NAME ...).
               ,(and (memq '&key args) 'cl-whole) ,unsafe ,@argns)))
        (cl-defun ,name ,args ,@body))))
 
+;; Make sure functions defined with cl-defsubst can be inlined even in
+;; packages which do not require CL.
+;;;###autoload
 (defun cl--defsubst-expand (argns body simple whole unsafe &rest argvs)
   (if (and whole (not (cl--safe-expr-p (cons 'progn argvs)))) whole
     (if (cl--simple-exprs-p argvs) (setq simple t))
index ef482f8f0e9f85640e38f5844a3a569b57a562ac..f17b29de7208b1ca9cd6af3ac6b31a409f9477ae 100644 (file)
@@ -621,7 +621,7 @@ FILE is the file where FUNCTION was probably defined."
             ;; If the function is autoloaded, and its docstring has
             ;; key substitution constructs, load the library.
             (doc (progn
-                   (and (autoloadp real-def)
+                   (and (autoloadp real-def) doc-raw
                         help-enable-auto-load
                         (string-match "\\([^\\]=\\|[^=]\\|\\`\\)\\\\[[{<]"
                                       doc-raw)