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 EMACS=@EMACS@ 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?
iff --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 EMACS=@EMACS@ 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 \
signature.asc
Description: PGP signature
_______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
