auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drop tarball releases and go ELPA only


From: Ikumi Keita
Subject: Re: Drop tarball releases and go ELPA only
Date: Mon, 19 Aug 2024 15:30:10 +0900

Hi Arash,

>>>>> Arash Esbati <arash@gnu.org> writes:
> Thanks, but here is the next issue; when applying the change (incl. the
> missing closing paren), i.e.:
> diff --git a/auctex.el b/auctex.el
> index 2f7af507..8b15e5c1 100644
> --- a/auctex.el
> +++ b/auctex.el
> @@ -42,11 +42,9 @@
>  ;;     (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)

>  ;;; auctex.el ends here

> and running make, I get:
> emacs --batch -q -no-site-file -no-init-file -l lpath.el -f batch-byte-comp=
> ile auctex.el

> In toplevel form:
> auctex.el:45:2: Error: Wrong type argument: stringp, nil
> make: *** [GNUmakefile:82: auctex.elc] Error 1
> I currently can't see why I :-(

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 :-(

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...

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW



reply via email to

[Prev in Thread] Current Thread [Next in Thread]