[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AUCTeX doesn't build with latest Emacs master
From: |
Arash Esbati |
Subject: |
AUCTeX doesn't build with latest Emacs master |
Date: |
Tue, 09 Aug 2022 14:50:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 |
Hi all,
I wanted to test the patches provided by Werner[1] and discovered that
AUCTeX currently doesn't build with Emacs from master (my repo version
is 3e93457ddb). It seems that `update-file-autoloads' is gone since
autoload.el is now under lisp/obsolete. The replacement is
`loaddefs-generate' which has a different signature. I'm not really
familiar with this part of AUCTeX, can someone have a look on this?
I played with it and come up with this to reanimate my AUCTeX
installation, but it doesn't look right to me.
--8<---------------cut here---------------start------------->8---
diff --git a/Makefile.in b/Makefile.in
index d62644f9..7b6fa8ca 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -52,14 +52,24 @@ PACKAGE=auctex
PACKAGE_INFO=auctex preview-latex
EMACS=@EMACS@
ELCC=$(EMACS) -batch -q -no-site-file -no-init-file -l lpath.el
-AUTOLOAD=--eval '(let ((autoload-file (expand-file-name "$@"))) \
+AUTOLOAD=--eval '\
+(let* ((autoload-file (expand-file-name "$@")) \
+ (autoload-file-dir (file-name-directory autoload-file)) \
+ (autoload-file-name (file-name-nondirectory autoload-file))) \
(mapcar (lambda (file) \
- (update-file-autoloads file nil autoload-file)) \
+ (if (fboundp (quote loaddefs-generate)) \
+ (loaddefs-generate autoload-file-dir autoload-file-name) \
+ (update-file-autoloads file nil autoload-file))) \
command-line-args-left) \
(save-buffers-kill-emacs t))'
-PREVIEW_AUTOLOAD=--eval '(let ((autoload-file (expand-file-name "$@"))) \
- (update-file-autoloads "preview.el" nil autoload-file) \
+PREVIEW_AUTOLOAD=--eval '\
+(let* ((autoload-file (expand-file-name "$@")) \
+ (autoload-file-dir (file-name-directory autoload-file)) \
+ (autoload-file-name (file-name-nondirectory autoload-file))) \
+ (if (fboundp (quote loaddefs-generate)) \
+ (loaddefs-generate autoload-file-dir autoload-file) \
+ (update-file-autoloads "preview.el" nil autoload-file)) \
(save-buffers-kill-emacs t))'
# Files and directories excluded from distributed tar ball.
--8<---------------cut here---------------end--------------->8---
Best, Arash
Footnotes:
[1] https://lists.gnu.org/archive/html/auctex/2022-08/msg00000.html
- AUCTeX doesn't build with latest Emacs master,
Arash Esbati <=
- Re: AUCTeX doesn't build with latest Emacs master, Tassilo Horn, 2022/08/09
- Re: AUCTeX doesn't build with latest Emacs master, Arash Esbati, 2022/08/09
- Re: AUCTeX doesn't build with latest Emacs master, Ikumi Keita, 2022/08/09
- Re: AUCTeX doesn't build with latest Emacs master, Tassilo Horn, 2022/08/10
- Re: AUCTeX doesn't build with latest Emacs master, Arash Esbati, 2022/08/11
- Re: AUCTeX doesn't build with latest Emacs master, Tassilo Horn, 2022/08/12
- Re: AUCTeX doesn't build with latest Emacs master, Arash Esbati, 2022/08/12
- Re: AUCTeX doesn't build with latest Emacs master, Arash Esbati, 2022/08/15
- Re: AUCTeX doesn't build with latest Emacs master, Ikumi Keita, 2022/08/28
- Re: AUCTeX doesn't build with latest Emacs master, Arash Esbati, 2022/08/29