branch: elpa/with-editor
commit 5ff4c0d0a410822921382cf851a64c755c21b3df
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    make: Update loaddefs target
    
    - Provide feature in autoload rubric.
    - Suppress most messages using `inhibit-message'.
    - No longer double down on `autoload-timestamps's default value.
---
 lisp/Makefile | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/lisp/Makefile b/lisp/Makefile
index eb41ee353c0..658225dbb65 100644
--- a/lisp/Makefile
+++ b/lisp/Makefile
@@ -23,14 +23,12 @@ clean:
 $(PKG)-autoloads.el: $(ELS)
        @printf " Creating $@\n"
        @$(EMACS) -Q --batch -l autoload -l cl-lib --eval "\
-(let ((file (expand-file-name \"$@\"))\
-      (autoload-timestamps nil) \
-      (backup-inhibited t)\
-      (version-control 'never)\
-      (coding-system-for-write 'utf-8-emacs-unix))\
-  (write-region (autoload-rubric file \"package\" nil) nil file nil 'silent)\
-  (cl-letf (((symbol-function 'progress-reporter-do-update) (lambda (&rest 
_)))\
-            ((symbol-function 'progress-reporter-done) (lambda (_))))\
-    (let ((generated-autoload-file file))\
-      (update-directory-autoloads default-directory))))" \
+(let* ((file (expand-file-name \"$@\"))\
+       (generated-autoload-file file)\
+       (coding-system-for-write 'utf-8-emacs-unix)\
+       (backup-inhibited t)\
+       (version-control 'never)\
+       (inhibit-message t))\
+  (write-region (autoload-rubric file \"package\" t) nil file)\
+  (update-directory-autoloads default-directory))" \
        2>&1 | sed "/^Package autoload is deprecated$$/d"

Reply via email to