From d8665e6d3473403c90a0831e83439a013d0012d3 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 4 Oct 2020 16:32:16 +0200 Subject: [PATCH] Make update-file-autoloads respect generated-autoload-file * lisp/emacs-lisp/autoload.el (update-file-autoloads): Make update-file-autoloads respect `generated-autoload-file', as documented. --- lisp/emacs-lisp/autoload.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index e6e3fd9da10..07bda537b39 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -923,6 +923,7 @@ Return FILE if there was no autoload cookie in it, else nil." (interactive (list (read-file-name "Update autoloads for file: ") current-prefix-arg (read-file-name "Write autoload definitions to file: "))) + (setq outfile (or outfile generated-autoload-file)) (let* ((autoload-modified-buffers nil) ;; We need this only if the output file handles more than one input. ;; See https://debbugs.gnu.org/22213#38 and subsequent. -- 2.39.5