Closed vinurs closed 1 year ago
The update-directory-autoloads
is a core Emacs function that's been there for many years. It's present is the latest commit to master (as of today 2022/08/14) as well: https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/emacs-lisp/autoload.el?id=6f36b67e4146ef4610916b7903fd292e1308daf5#n1027. It's part of the Emacs core library autoload.el
.
make md
gets called during ox-hugo
auto testing on GitHub Actions as well. I haven't noticed this error yet.
Can you review your Emacs installation? What changed between the last time this worked and now?
it seems there is no lisp/emacs-lisp/autoload.el
file in the master https://github.com/emacs-mirror/emacs
I am not aware of that mirror. Can you clone from the official repo https://git.savannah.gnu.org/cgit/emacs.git/ ?
Actually, you are right! It looks like that autoload.el has been moved/changed on that master branch: https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/emacs-lisp
Let me know if you find an alternative for update-directory-autoloads
on the master branch. You can ask about this on the Emacs devel mailing list or review the commit history and NEWS file.
The autoload.el is now obsolete. I'll add some workaround for this. Thanks for opening this issue.
@vinurs Hello, does this patch fix this issue for you?
diff --git a/test/setup-ox-hugo.el b/test/setup-ox-hugo.el
index e19fb93..4d8b030 100644
--- a/test/setup-ox-hugo.el
+++ b/test/setup-ox-hugo.el
@@ -155,9 +155,11 @@ Emacs installation. If Emacs is installed using
(setq package-archives (delq (assoc "nongnu" package-archives) package-archives))
;; Generate/update and load the autoloads for ox-hugo.el and co.
- (let ((generated-autoload-file ox-hugo-autoloads-file))
- (update-directory-autoloads ox-hugo-site-git-root)
- (load-file ox-hugo-autoloads-file))
+ (if (fboundp #'loaddefs-generate) ;Emacs 29+
+ (loaddefs-generate ox-hugo-site-git-root ox-hugo-autoloads-file)
+ (let ((generated-autoload-file ox-hugo-autoloads-file)) ;Emacs 28.x and older
+ (update-directory-autoloads ox-hugo-site-git-root)))
+ (load-file ox-hugo-autoloads-file)
;; Load emacs packages and activate them.
;; Don't delete this line.
I don't have Emacs 29 built, so I cannot test it.
@vinurs I have closed this issue as the change in https://github.com/kaushalmodi/ox-hugo/pull/676 passed the CI run on emacs 29 as well. Let me know if this fix doesn't work for you and I'll reopen this issue.
@kaushalmodi sorry for late reply, i tested it just now, it has beed fixed, thanks for ur help ^_^
Thanks for confirming.
i use the latest Emacs in https://github.com/emacs-mirror/emacs
Actual Behavior
make md
Expected Behavior
export the org files to md files
How to Reproduce the Issue
Example Org File
Generated Markdown File or Error