From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#62762: 'make' often errors with "Org version mismatch" after pulling a new version of the code Date: Mon, 01 May 2023 10:25:20 +0000 Message-ID: <87cz3k8i27.fsf@localhost> References: <17b74a48-94e1-9106-cc79-d31972313910@gutov.dev> <837cujaqzq.fsf@gnu.org> <87wn2ilwed.fsf@localhost> <83zg7ealrd.fsf@gnu.org> <87pm8a8dx4.fsf@localhost> <87pm7vt0mx.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16060"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bzg@gnu.org, dmitry@gutov.dev, Eli Zaretskii , 62762@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 01 12:23:20 2023 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 1ptQgi-0003zw-04 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 May 2023 12:23:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptQgX-00051N-N5; Mon, 01 May 2023 06:23:11 -0400 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 1ptQgR-0004zb-FL for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 06:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptQgQ-00071M-JD for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 06:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptQgP-0004bq-UT for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 06:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 May 2023 10:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62762 X-GNU-PR-Package: emacs Original-Received: via spool by 62762-submit@debbugs.gnu.org id=B62762.168293655117665 (code B ref 62762); Mon, 01 May 2023 10:23:01 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 1 May 2023 10:22:31 +0000 Original-Received: from localhost ([127.0.0.1]:39017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptQfu-0004ar-Kh for submit@debbugs.gnu.org; Mon, 01 May 2023 06:22:31 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:37879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptQfp-0004aY-Ua for 62762@debbugs.gnu.org; Mon, 01 May 2023 06:22:28 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6BB64240122 for <62762@debbugs.gnu.org>; Mon, 1 May 2023 12:22:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1682936540; bh=rbxNsQIeuFGnzXzmCtLB4KjxSe/v7cxbSG8QragtYbE=; h=From:To:Cc:Subject:Date:From; b=jpyXotyMrGxFN7osn79e41vwEa7kMnlAnfEiFaVnqz7rKp88UhXS1wmDV6oL2jFCO YvdaJCikDNb/YpYkBFWySw/c/mO0D/DerRD67WZFRpa40p6TsViaCozOqvvTk2eEbN FjUWVa2Yt3LpIyfcwN7BI2ufuzLrXsFZ1jRl6pWEGa9l7nnTHhGZ3/FEKwk1wL4oKN 7Gsc1LRLHRA9D1ImH7/hPM55g7NZL3OW6NBVG2AjZDFe5ZBlrvqH2e/iievt+yxLts JgG3m3NGFASyj3eO4XXrkegeFp8k2RnGCS1oh39MD0d8WFbbVRclKJXjifaZUIQUYj 8WNj6Zb/MBE5w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q8zmC3TlZz9rxF; Mon, 1 May 2023 12:22:19 +0200 (CEST) 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:260854 Archived-At: Stefan Monnier writes: > Maybe if we can identify a "first org-*.el file" (i.e. a file which > *any* use of some part of Org mode would necessarily load pretty early > on), then we can reduce this check to: Such file is org-macs.el > - check if that "first org-*.el file" is already loaded. > - if no, load it > - if yes, compare the output of `locate-file` to what is found in > `load-history`, and in case it doesn't match (because of a new > directory in `load-path`), signal an error (or maybe force a reload > instead?). > > We could even provide a new `require-with-shadow-check` function that > does just that. May you provide an approximate code for that function? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at