emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/hyperbole f07af8e37d: Use loaddefs-generate when availa


From: ELPA Syncer
Subject: [elpa] externals/hyperbole f07af8e37d: Use loaddefs-generate when available (#271)
Date: Sun, 14 Aug 2022 12:57:39 -0400 (EDT)

branch: externals/hyperbole
commit f07af8e37d3e36ab93f85277a18c23eba238785d
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: GitHub <noreply@github.com>

    Use loaddefs-generate when available (#271)
    
    Autoload.el is obsolete since 29.1.
---
 ChangeLog     | 5 +++++
 hload-path.el | 9 ++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3297762374..731a1f0bf9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-14  Mats Lidell  <matsl@gnu.org>
+
+* hload-path.el (hload-path--make-directory-autoloads): Use
+    loaddefs-generate if available.
+
 2022-08-07  Mats Lidell  <matsl@gnu.org>
 
 * kotl/kvspec.el: Shorten docs strings to be within 80 char limit.
diff --git a/hload-path.el b/hload-path.el
index e4a13abee5..757223712f 100644
--- a/hload-path.el
+++ b/hload-path.el
@@ -111,9 +111,12 @@ the symbol list.  For `suspicious', only `set-buffer' can 
be used."
 ;; New autoload generation function defined only in Emacs 28
 
 (defalias 'hload-path--make-directory-autoloads
-  (if (fboundp #'make-directory-autoloads)
-      #'make-directory-autoloads
-    #'hload-path--internal-make-directory-autoloads))
+  (cond ((fboundp 'loaddefs-generate)
+         #'loaddefs-generate)
+        ((fboundp #'make-directory-autoloads)
+         #'make-directory-autoloads)
+        (t
+         #'hload-path--internal-make-directory-autoloads)))
 
 (defun hload-path--internal-make-directory-autoloads (dir output-file)
   "Update autoload definitions for Lisp files in the directories DIRS.



reply via email to

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