[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Drop tarball releases and go ELPA only
From: |
Arash Esbati |
Subject: |
Re: Drop tarball releases and go ELPA only |
Date: |
Mon, 19 Aug 2024 09:24:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Keita,
Ikumi Keita <ikumi@ikumi.que.jp> writes:
> Very cofusing, but I at last found out why. Since this `requre' is a top
> level form, byte-compiler evaluates it, and `fila-name-directory' fails
> because `load-file-name' is nil :-(
Thanks for digging into this 🙏
> We should add something like this:
>
> diff --git a/GNUmakefile b/GNUmakefile
> index 01608188..3ef225e6 100644
> --- a/GNUmakefile
> +++ b/GNUmakefile
> @@ -46,7 +46,8 @@ ALL_GENERATED_FILES=$(MAIN_GENERATED_FILES) \
> # Generate & compile everything including the manuals below doc/.
> all: $(ALL_GENERATED_FILES) compile auctex-autoloads.el
>
> -compile: $(patsubst %.el,%.elc,$(wildcard *.el style/*.el)) tex-site.elc
> +COMPILE_ELC= $(filter-out auctex.elc, $(patsubst %.el,%.elc,$(wildcard *.el
> sty
> le/*.el)))
> +compile: $(COMPILE_ELC) tex-site.elc
>
> # If we were depending on emacs 29.1, we could simply use
> # loaddefs-generate...
This will prevent auctex.el from being byte-compiled, right? If so, we
could also probably take the other approach and do:
--8<---------------cut here---------------start------------->8---
diff --git a/auctex.el b/auctex.el
index 2f7af507..cd73f256 100644
--- a/auctex.el
+++ b/auctex.el
@@ -42,11 +42,13 @@
;; (require 'tex-site (expand-file-name "tex-site.el"
;; (file-name-directory load-file-name))
-(autoload 'TeX-load-hack
- (expand-file-name "tex-site.el"
- (file-name-directory load-file-name)))
-(TeX-load-hack)
-
+(require 'tex-site
+ (expand-file-name "tex-site.el"
+ (file-name-directory load-file-name)))
(provide 'auctex)
+;; Local Variables:
+;; no-byte-compile: t
+;; End:
+
;;; auctex.el ends here
--8<---------------cut here---------------end--------------->8---
which seems easier to me ("easier" is in the eye of beholder, of course
;-)
Best, Arash
- Re: Drop tarball releases and go ELPA only, (continued)
- Re: Drop tarball releases and go ELPA only, Ikumi Keita, 2024/08/17
- Re: Drop tarball releases and go ELPA only, Arash Esbati, 2024/08/18
- Re: Drop tarball releases and go ELPA only, Uwe Brauer, 2024/08/18
- Re: Drop tarball releases and go ELPA only, Ikumi Keita, 2024/08/18
- Re: Drop tarball releases and go ELPA only, Arash Esbati, 2024/08/18
- Re: Drop tarball releases and go ELPA only, Ikumi Keita, 2024/08/19
- Re: Drop tarball releases and go ELPA only,
Arash Esbati <=
- Re: Drop tarball releases and go ELPA only, Ikumi Keita, 2024/08/19
- Re: Drop tarball releases and go ELPA only, Arash Esbati, 2024/08/21
- Re: Drop tarball releases and go ELPA only, Ikumi Keita, 2024/08/21
- Re: Drop tarball releases and go ELPA only, Arash Esbati, 2024/08/21
- Re: Drop tarball releases and go ELPA only, Ikumi Keita, 2024/08/21
- Re: Drop tarball releases and go ELPA only, Arash Esbati, 2024/08/21
- Re: Drop tarball releases and go ELPA only, Ikumi Keita, 2024/08/21
- Re: Drop tarball releases and go ELPA only, Arash Esbati, 2024/08/22
- Re: Drop tarball releases and go ELPA only, Ikumi Keita, 2024/08/22
- Re: Drop tarball releases and go ELPA only, Arash Esbati, 2024/08/22