Handle immediate autoloads (';;;###autoloadimmediate') better.
authorSteve Youngs <steve@sxemacs.org>
Fri, 10 Jul 2015 12:21:17 +0000 (22:21 +1000)
committerSteve Youngs <steve@sxemacs.org>
Fri, 10 Jul 2015 12:21:17 +0000 (22:21 +1000)
* lisp/autoload.el (process-one-lisp-autoload): Insert <immediate>
into the section header for immediate autoloads, to make sure the
upstream doesn't think there aren't any autoloads at all.

From: Mike Sperber  <mike@xemacs.org>

Signed-off-by: Steve Youngs <steve@sxemacs.org>
lisp/autoload.el

index 52bbd4b..e2f38ea 100644 (file)
@@ -550,7 +550,8 @@ Updates AUTOLOADS-DONE and returns the new value."
           (let ((begin (point)))
             (forward-sexp)
             (forward-line 1)
-            (princ (buffer-substring begin (point)) outbuf)))
+            (princ (buffer-substring begin (point)) outbuf))
+          (setq autoloads-done (cons '<immediate> autoloads-done)))
          (t
           (princ (buffer-substring
                   (progn