[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: |
Wed, 14 Aug 2024 07:14:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Keita,
Ikumi Keita <ikumi@ikumi.que.jp> writes:
> I have to add "(save-some-buffers t)" before `with-temp-file'. The
> arragned result is:
> AUTOLOAD=--eval '\
> (let* ((autoload-file (expand-file-name "$@")) \
> (autoload-file-dir (file-name-directory autoload-file)) \
> (addition-code "(add-to-list (quote load-path)\n\
> (directory-file-name\n\
> (file-name-directory
> load-file-name)))")) \
> (if (fboundp (quote loaddefs-generate)) \
> (loaddefs-generate autoload-file-dir autoload-file \
> (list "tex-wizard.el" "auctex.el" "lpath.el") \
> addition-code) \
> (setq generated-autoload-file autoload-file) \
> (update-directory-autoloads autoload-file-dir) \
> (save-some-buffers t) \
> (with-temp-file autoload-file \
> (insert-file-contents autoload-file) \
> (cond ((progn (goto-char (point-min)) \
> (re-search-forward "^;;; Code:" nil t)) \
> (newline 2)) \
> ((progn (goto-char (point-min)) \
> (re-search-forward "^$$")) \
> (open-line 2)) \
> (t (goto-char (point-max)))) \
> (insert addition-code))) \
> (save-buffers-kill-emacs t))'
>
> auctex-autoloads.el:
> rm -f $@
> $(EMACS) $(AUTOLOAD)
>
> I made use of `update-directory-autoloads'. Emacs 27.1 does have it
> while it doesn't `make-directory-autoloads', so we can dispense of
> mapc+update-file-autoloads and $(wildcard *.el) in the make rule.
>
> Emacs 27.1, 28.2 and 29.4 works with the above settings. :-)
Thanks, I think this more testing than we ever had ;-) So please go
ahead and push this as well.
Best, Arash