Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
9 changes: 6 additions & 3 deletions hload-path.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down