From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#74490: 31.0.50; make bootstrap fails Date: Sat, 23 Nov 2024 12:15:23 -0500 Message-ID: References: <4934163.OV4Wx5bFTl@fedora> <86mshqkqtd.fsf@gnu.org> <86iksekp39.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21139"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74490@debbugs.gnu.org, Eli Zaretskii , v.pupillo@gmail.com, Sam James To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 18:17:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tEtl6-0005Jv-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 18:17:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEtku-0006jf-Dc; Sat, 23 Nov 2024 12:17:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEtkl-0006gz-77 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:17:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEtkk-000429-V9 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:17:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=KBVa7bbLentczS+jIbcDDxEi54OGy+lX4uJuFjn/IhY=; b=nXg1TPj/4AWsIcOmA9g3o5DfYvqLLB0FJ4QDN0gfofz4AhgtOvS/Bj1rqRY7uc8S4YUSH7XeuZQcGSIsvI4yoggxdilMKvfXDqgNt/zrvil3EaFd8GORz+cGGHAw4r96MoTzN9NBWm/CZF6drOxu+lFBYgDsNnZJqraWCviNslmQWj56TkXsXeJaUh0J9SvHt5LLK1KyamxfVvw5oT0l5pU1fBMPaTRdo1tlCuf7qIhS+3AMI9/6vM9kQGlaICqMB/9ueaFTQt+Pin40YoHh7i/37saJFB9atrSjUdwBRovvFRtOBHqEKGVLAPYt0/9KxdlHZt1LxBAZbV1xRwTMvQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEtkk-0001zV-JL for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 17:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74490-submit@debbugs.gnu.org id=B74490.17323821887568 (code B ref 74490); Sat, 23 Nov 2024 17:17:02 +0000 Original-Received: (at 74490) by debbugs.gnu.org; 23 Nov 2024 17:16:28 +0000 Original-Received: from localhost ([127.0.0.1]:58926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEtkB-0001y0-M3 for submit@debbugs.gnu.org; Sat, 23 Nov 2024 12:16:27 -0500 Original-Received: from mail-ej1-f51.google.com ([209.85.218.51]:52554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEtk9-0001xb-1Q for 74490@debbugs.gnu.org; Sat, 23 Nov 2024 12:16:26 -0500 Original-Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-aa1e6ecd353so212189066b.1 for <74490@debbugs.gnu.org>; Sat, 23 Nov 2024 09:16:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732382124; x=1732986924; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=KBVa7bbLentczS+jIbcDDxEi54OGy+lX4uJuFjn/IhY=; b=cKDJKIeY0gaL2+JS+Yt7qcVeLgZwFUIoAyDPW5kTufORsIMcc5udh7kWLl2WZs35Jl XN73hDm0y9zxfe4MvghA23gSBHJtoaNLwyaITSup9/gbIxpK30Gp8n+SZMLg2PAaHzL4 tLi0dPQvvv719fJbUhQL0BgsnSiaSIQvDAJPVYGDyipxZ7ZZwhzOuZyKWWIpmNPny/Jm +S8u+FKlG8RyaM9uPGWvRNrhJGsNe4VuBrjw61fKA1rnDZ7fD2L2r5dkJdsP51A7/GmR JXVfOVQD3tonIkSM0O2VMolIjPYW2bCi0q+pRV80pOh+drZIMbufLgfTWLMlxjt5Roed wujg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732382124; x=1732986924; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KBVa7bbLentczS+jIbcDDxEi54OGy+lX4uJuFjn/IhY=; b=lzki570GFzBfDWF54SYWI2trii8GiQeYBbMBwZB9KmWfhWR2OZVmczVAnY9swzIUyQ d04uOLwU7v0mGXVjDsT5Fp5BIZuBQ016hKiNKjVDkB2SX8NoMuoP8a6cJm0kTFqjsivc BQ+7NSJfZkSsj5xifgUZ2ySJ8EszQuioIbRvLn8tMvDRHpq1vFgSPYJ+3V/xtH+Tq5MX hI3rvahqRaUlrfW7jo53pbaaudQ0JOFHyhUUv3Ris3SsJ5GTtea5HsgwuM/+4ziYQfSL EPiSWXeEjzgBGCGTkd/pU1meNIAQszmfbw9S9EAqQMD0pD/WL3lVXlvyyYgTe1kI/IWn VlDw== X-Forwarded-Encrypted: i=1; AJvYcCW8Iue6f19bk26abB5RG+m4lnuq9U2lu/CJn56FTH5vYsdIduqXdj+hUa6A7oa6XmqnGXqbJQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx6aMVKyUbdsxiLhB99K3rIWf673TCSFPcf2NriduGPNYz/xfF7 BF9BObf3ajOWOUsuPTz46XveyPfc0zQUFl8/kZzZsThCVWClVkcqSW1aHRnRpPzRzRS3CdK3mjn bUOBYGzK19+pEgpnNekmZ9Fr/EiE= X-Gm-Gg: ASbGncuOanji4+PA9K72svq2jQmbKsmD/CkIGUQaMYF7dEY7JJoMb7y5QLbQnRhe1zS ZoMLYL5hqms3QL9b+EA/zJFIzH361xeSLqQ== X-Google-Smtp-Source: AGHT+IHnoBoWBRLuqvIPaJ4zNV996aBNBb97GmqUwBYm9137UJ6SukwcKRWoOIcC/ZferuKzS6v5zKrTjTtfNnWTNys= X-Received: by 2002:a05:6402:40c9:b0:5cf:baf3:d578 with SMTP id 4fb4d7f45d1cf-5d02060c827mr6768180a12.5.1732382123776; Sat, 23 Nov 2024 09:15:23 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 23 Nov 2024 12:15:23 -0500 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295853 Archived-At: Stefan Monnier writes: > The problem we're facing shows up only during bootstrap, when we're > loading `loaddefs.el`, and not in the real dump where we load > `loaddefs.elc`. > > Since we presumably don't make any real use of that regexp (we don't > visit any Python file) while compiling Emacs, another workaround might > be to wrap the call to `rx` around something like an `(when (fboundp > 'rx) ...)`. That would work, yes. >>> Stefan, are there any clean ways of using calls to autoloaded macros >>> in autoloaded defconst or defvar? > > Currently our autoloading mechanism doesn't offers any clean way to > enforce some kind of ordering, sadly. I guess we could also try > something like: > > ;;;###autoload > (defconst python--auto-mode-alist-regexp > (eval-when-compile > (require 'rx) > (rx (or > (seq "." (or "py" > "pth" ; Python Path Configuration File > "pyi" ; Python Stub File (PEP 484) > "pyw")) ; MS-Windows specific extension > (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files > eos))) I like this alternative slightly better, since it makes it more clear what is going on. The first version gives the reader the impression that the variable is sometimes undefined, or that `rx` could be missing... which it technically is, but not in the cases a prospective reader would usually need to worry about.