unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Kangas <stefankangas@gmail.com>,
	Sam James <sam@gentoo.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 74490@debbugs.gnu.org, v.pupillo@gmail.com
Subject: bug#74490: 31.0.50; make bootstrap fails
Date: Sat, 23 Nov 2024 16:21:46 +0200	[thread overview]
Message-ID: <86iksekp39.fsf@gnu.org> (raw)
In-Reply-To: <86mshqkqtd.fsf@gnu.org> (message from Eli Zaretskii on Sat, 23 Nov 2024 15:44:30 +0200)

merge 74490 74491 73855
thanks

> Cc: 74490@debbugs.gnu.org
> Date: Sat, 23 Nov 2024 15:44:30 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > From: Vincenzo Pupillo <v.pupillo@gmail.com>
> > Cc: Eli Zaretskii <eliz@gnu.org>
> > Date: Sat, 23 Nov 2024 13:22:30 +0100
> > 
> > Ciao Eli, 
> > make bootstrap fails today, I think it is due to this commit: 
> > commit 1c2e0615fb87727bc2aa1f871353c999b67c792a
> > Author: Eli Zaretskii <eliz@gnu.org>
> > Date:   Sat Nov 23 04:51:10 2024 -0500
> > 
> >     ; Update ldefs-boot.el
> > 
> > 
> > 
> > Loading /home/vincenzo/Projects/Emacs/emacs/lisp/ldefs-boot.el (source)...
> > 
> > Error: void-function (rx)
> >   (rx (or (seq "." (or "py" "pth" "pyi" "pyw")) (seq "/" (or "SConstruct" 
> > "SConscript"))) eos)
> >   (defconst python--auto-mode-alist-regexp (rx (or (seq "." (or "py" "pth" 
> > "pyi" "pyw")) (seq "/" (or "SConstruct" "SConscript"))) eos))
> >   eval-buffer(#<buffer  *load*> nil "/home/vincenzo/Projects/Emacs/emacs/lisp/
> > ldefs-boot.el" nil t)
> >   (if eval-function (funcall eval-function buffer (if dump-mode file fullname)) 
> 
> No, I think this is bug#73855, which somehow rears its ugly head.
> 
> Stefan, could you please look into this?

I think I see the reason: python--auto-mode-alist-regexp appears in
ldefs-boot before the autoloads from rx.el, which define the macro rx.
(A similar defconts defined by Tramp doesn't trigger the problem
because it comes _after_ rx.)

So I believe it's a bad idea to use rx in an autoloaded defconst,
since we cannot know whether the defconst will be in loaddefs.el
before or after the rx macro.

Stefan, are there any clean ways of using calls to autoloaded macros
in autoloaded defconst or defvar?





  reply	other threads:[~2024-11-23 14:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-23 12:22 bug#74490: 31.0.50; make bootstrap fails Vincenzo Pupillo
2024-11-23 13:44 ` Eli Zaretskii
2024-11-23 14:21   ` Eli Zaretskii [this message]
2024-11-23 15:53     ` Stefan Kangas
2024-11-23 16:29       ` Eli Zaretskii
2024-11-23 16:38         ` Eli Zaretskii
2024-11-23 17:04           ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-23 17:36         ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-23 16:37       ` Sam James
2024-11-23 17:03       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-23 17:15         ` Stefan Kangas
2024-11-23 14:31   ` Gerd Möllmann

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=86iksekp39.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74490@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=sam@gentoo.org \
    --cc=stefankangas@gmail.com \
    --cc=v.pupillo@gmail.com \
    /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).