unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: Eli Zaretskii <eliz@gnu.org>,  emacs-devel@gnu.org
Subject: Re: 29.2: (void-function batch-update-autoloads)
Date: Mon, 26 Aug 2024 15:19:08 +0200	[thread overview]
Message-ID: <m21q2be81f.fsf@macmutant.fritz.box> (raw)
In-Reply-To: <87ed6bpil1.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 26 Aug 2024 14:35:54 +0200")

Uwe Brauer <oub@mat.ucm.es> writes:

> Now the problem is that we want to cater for users with different Emacs
> versions 30,29,28, 27 and maybe even 26.
>
> In the case of lisp file, I know how to deal with such a situation, but
> for a Makefile?

This is what AUCTeX does in a Makefile to deal with this:

--8<---------------cut here---------------start------------->8---
AUTOLOAD=--eval '\
(let* ((autoload-file (expand-file-name "$@")) \
       (autoload-file-dir (file-name-directory autoload-file))) \
  (if (fboundp (quote loaddefs-generate)) \
      (loaddefs-generate autoload-file-dir autoload-file) \
    (setq generated-autoload-file autoload-file) \
    (update-directory-autoloads autoload-file-dir)) \
  (save-buffers-kill-emacs t)'

auctex-autoloads.el:
        $(EMACS) $(AUTOLOAD)
--8<---------------cut here---------------end--------------->8---

HTH.  Best, Arash



  parent reply	other threads:[~2024-08-26 13:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-25  8:52 29.2: (void-function batch-update-autoloads) Uwe Brauer via Emacs development discussions.
2024-08-25 11:30 ` Eli Zaretskii
2024-08-25 16:23   ` Uwe Brauer via Emacs development discussions.
2024-08-25 18:24     ` Eli Zaretskii
2024-08-26 12:35       ` Uwe Brauer
2024-08-26 12:47         ` Eli Zaretskii
2024-08-26 13:19         ` Arash Esbati [this message]
2024-08-26 13:21           ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m21q2be81f.fsf@macmutant.fritz.box \
    --to=arash@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=oub@mat.ucm.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).