all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Uwe Brauer <oub@mat.ucm.es>, emacs-devel@gnu.org
Subject: Re: 29.2: (void-function batch-update-autoloads)
Date: Mon, 26 Aug 2024 14:35:54 +0200	[thread overview]
Message-ID: <87ed6bpil1.fsf@mat.ucm.es> (raw)
In-Reply-To: 861q2clauk.fsf@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2764 bytes --]

>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:

>> ,----
>> | 
>> | EMACS=/usr/local/bin/emacs
>> | EMACSFLAGS=-batch --no-site-file --eval '(setq debug-on-error t)'
>> | 
>> | autoloads: 
>> | 	$(EMACS) $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) --eval
>> | '(setq generated-autoload-file "$(abspath $(LOADDEFS))")' -f
>> | loaddefs-generate--emacs-batch $(abspath $(LOADDIRS))
>> `----

> I don't know where did you take this from.  In Emacs 29.2,
> lisp/Makefile says something very different:

This is from our Makefile. I am not 100% sure who wrote this. Git
(mercurial) seems to indicate that it was Eric Ludlam.



>   autoloads: $(lisp)/emacs-lisp/loaddefs-gen.elc gen-lisp
> 	  $(AM_V_GEN)$(emacs) \
> 	      -l $(lisp)/emacs-lisp/loaddefs-gen.elc \
> 	      -f loaddefs-generate--emacs-batch ${SUBDIRS_ALMOST}

>> Using 29.2, but I receive still, 
>> (void-function loaddefs-generate--emacs-batch)

> And what is the textbook solution in Emacs for void-function errors?

Asking in the list 😉? ok seriously now, loading the file that defines
that function, which the above code seems to do, if I take a closer look.

But now I am deeply confused.

I thought in a Makefile, that, among other things, byte compile lisp files,
one should best set

EMACSFLAGS=-batch --no-site-file 

or something similar and the generation of autoloads would use
functionalities of emacs core.

As you can see in our case the generation of autoloads was done with 

--8<---------------cut here---------------start------------->8---
autoloads: 
	$(EMACS) $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) --eval '(setq generated-autoload-file "$(abspath $(LOADDEFS))")' -f batch-update-autoloads $(abspath $(LOADDIRS))
--8<---------------cut here---------------end--------------->8---

While in your example a lisp file is needed to be loaded.

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? Shall we add a .configure file now to find out which
emacs version is used and then distinguish in the Makefile whether it is
<29 or >=29?



>> That being said I just wished, that there would be a more centralised
>> file or directory, where obsolete functions and variables were listed.

> The lisp/obsolete/ directory is home for all such functions and
> variables.


Ok I should have a close look then.


-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5684 bytes --]

  reply	other threads:[~2024-08-26 12:35 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 [this message]
2024-08-26 12:47         ` Eli Zaretskii
2024-08-26 13:19         ` Arash Esbati
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

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

  git send-email \
    --in-reply-to=87ed6bpil1.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.