[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Patch for Makefile to compile vs Emacs (e08e0880f9+)
From: |
Vladimir Lomov |
Subject: |
[AUCTeX-devel] Patch for Makefile to compile vs Emacs (e08e0880f9+) |
Date: |
Sat, 4 May 2019 11:37:35 +0800 |
User-agent: |
Mutt/1.11.4 (2019-03-13) |
Hello,
beginning with commit e08e0880f9 (that didn't compile clearly, one needs
to use ca99c00f7574d one) Emacs failed to build auctex due to (I suppose
because I don't know Emacs Lisp in details, and that commit is all
about) lexical binding. I looked into how Emacs buildin packages are
compiled (as well as org-mode) and prepared the following patch for
Makefile.in. It works fine for me (Emacs from git) but I didn't test it
vs "stable" branch (26 I think).
Patch:
-------------------------------- 8< ----------------------------------
diff --git a/Makefile.in b/Makefile.in
index 822eea9f..b4cefa0e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -52,12 +52,12 @@ PACKAGE=auctex
PACKAGE_INFO=auctex preview-latex
address@hidden@
ELCC=$(EMACS) -batch -q -no-site-file -no-init-file -l lpath.el
-AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name "$@"))) \
- (mapcar (function update-file-autoloads) command-line-args-left) \
+AUTOLOAD=--eval '(setq generated-autoload-file (expand-file-name "$@"))' \
+ --eval '(progn (mapcar (function update-file-autoloads)
command-line-args-left) \
(save-buffers-kill-emacs t))'
-PREVIEW_AUTOLOAD=--eval '(let ((generated-autoload-file (expand-file-name
"$@"))) \
- (update-file-autoloads "preview.el")(save-buffers-kill-emacs
t))'
+PREVIEW_AUTOLOAD=--eval '(setq generated-autoload-file (expand-file-name
"$@"))' \
+ --eval '(progn (update-file-autoloads "preview.el") (save-buffers-kill-emacs
t))'
# Files and directories excluded from distributed tar ball.
EXCLUDEDFILES=autogen.sh .gitignore doc/.gitignore doc/tex-ref.log \
-------------------------------- 8< ----------------------------------
P.S. Just in case if some mail servers mangle the message I attached the
patch as well.
---
WBR, Vladimir Lomov
--
When a cow laughs, does milk come out of its nose?
makefile.patch
Description: Text document
signature.asc
Description: PGP signature
- [AUCTeX-devel] Patch for Makefile to compile vs Emacs (e08e0880f9+),
Vladimir Lomov <=