From unknown Sun Jun 15 08:23:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65286 <65286@debbugs.gnu.org> To: bug#65286 <65286@debbugs.gnu.org> Subject: Status: 30.0.50; package-install-file for built-in package Reply-To: bug#65286 <65286@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:23:25 +0000 retitle 65286 30.0.50; package-install-file for built-in package reassign 65286 emacs submitter 65286 Ihor Radchenko severity 65286 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 14 07:54:59 2023 Received: (at submit) by debbugs.gnu.org; 14 Aug 2023 11:54:59 +0000 Received: from localhost ([127.0.0.1]:33057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVW9y-0007nr-S3 for submit@debbugs.gnu.org; Mon, 14 Aug 2023 07:54:59 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVW9x-0007nO-LL for submit@debbugs.gnu.org; Mon, 14 Aug 2023 07:54:58 -0400 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 1qVW9s-0006ya-6u for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2023 07:54:52 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVW9o-00070N-RI for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2023 07:54:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9302D240101 for ; Mon, 14 Aug 2023 13:54:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692014086; bh=VaQ8PCUpGwVQnSvxoZWndOWnfQgXvTu1PdTvz1P6ru4=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=DgjAc4pYjTcDxHona9WvIKjDxEmJJ0LE8ZkxV5tK10DU6nuDkT26ZWou6EXVBRXRG F/gnaI2i4jBuhnSxwD6JoG5diagKk14cImpSp8oJVGJBXkB+0LiJNU/qLLEd3nf+Gs f7dHWuTw79Nw6mCF+u+agPzC6cQsTrnY2iY0J5kOoPgpQ9ZGU54ZrdXEWrcvc09PC4 LdtuihhvcP8lF1htPQh3z1h+PEewk6WR2TVDZTVWJY2gWRemDXbNgrbHRSCCgcOtrG KfQtjyZTubQ0wEIjOEvR8kP7cQ1l8EXBcvTTHDInYu1AO1BCneUo+6T17ENfEnj4T/ n0/dMBtZmx8Gg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RPXrQ05f3z6twc for ; Mon, 14 Aug 2023 13:54:45 +0200 (CEST) From: Ihor Radchenko To: bug-gnu-emacs@gnu.org Subject: 30.0.50; package-install-file for built-in package Date: Mon, 14 Aug 2023 11:55:11 +0000 Message-ID: <87o7j9q1nk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi, I am trying to figure out ways to deal with mixing Org versions. (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62762) In my tests, I was trying to utilize M-x package-install-file to emulate ELPA installation. And I think that I stumbled upon a bug in this command. Recipe: 1. Remove default elpa directory 2. cd /tmp; git clone --depth 1 --branch feature/provide-version https://git.sr.ht/~yantar92/org-mode 3. cd org-mode/lisp 4. emacs -Q 5. M-x org-version 6. M-x package-install-file /tmp/org-mode/lisp 7. Observe ob-gnuplot.el:45:2: Error: Recursive load: "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/org.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/org.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/org.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/org.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/ox.el", "/home/yantar92/.emacs.d/elpa/org-9.7pre/ox-ascii.el" The same does not happen if we skip step (4). Also, keeping elpa directory around between the tests triggers various failures. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-08-13 built on localhost Repository revision: bfde3a4482ce7775f00a17b597daa1b188ef0d43 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Gentoo Linux -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 14 09:54:43 2023 Received: (at 65286) by debbugs.gnu.org; 14 Aug 2023 13:54:43 +0000 Received: from localhost ([127.0.0.1]:33202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVY1q-0005lb-PB for submit@debbugs.gnu.org; Mon, 14 Aug 2023 09:54:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVY1n-0005l0-Te for 65286@debbugs.gnu.org; Mon, 14 Aug 2023 09:54:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C98E824002A for <65286@debbugs.gnu.org>; Mon, 14 Aug 2023 15:54:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692021273; bh=JJ9Lko2u2sKtYq3dNEo3VwLRjZotH60Djl+SUFxVkvc=; h=From:To:Cc:Subject:Autocrypt:Date:Message-ID:MIME-Version:From; b=njBUoyoPwdUUuzTf1zj+2vfqNkbsEIFjOv43UOg/cr0vPYo6JzRGcK51rLjEXgS65 zSuZTiqpUhx6uxgy8AlSCTMSJXF32zBOGPhmcPLfISP0jOTQfalG9Qiy/W6+TXXMfd mhImQbkftRqmj93px56Njrscbg3R3970aNtp2F5CfMQoVNOUmztyB+GxGK1gViILtR GkFTV7yYGpz5joSIiqPJ/q5udGEEKMT2alx6RQLU7pjvuy+wVI9KxFUvnnFLL9BwNI 6XoUvCRY9ymYMTzURCLZnIFlQELKE/OM/FrPkaDilYJLhoXqXn8xabCY1+Pf5t5sLX fZ+NHPHudh9Tg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RPbVd1TrDz6txb; Mon, 14 Aug 2023 15:54:33 +0200 (CEST) From: Philip Kaludercic To: Ihor Radchenko Subject: Re: bug#65286: 30.0.50; package-install-file for built-in package In-Reply-To: <87o7j9q1nk.fsf@localhost> (Ihor Radchenko's message of "Mon, 14 Aug 2023 11:55:11 +0000") References: <87o7j9q1nk.fsf@localhost> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM Date: Mon, 14 Aug 2023 13:54:32 +0000 Message-ID: <87fs4livaf.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65286 Cc: 65286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ihor Radchenko writes: > Hi, > > I am trying to figure out ways to deal with mixing Org versions. > (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62762) > > In my tests, I was trying to utilize M-x package-install-file to emulate > ELPA installation. And I think that I stumbled upon a bug in this > command. > > Recipe: > 1. Remove default elpa directory > 2. cd /tmp; git clone --depth 1 --branch feature/provide-version https://git.sr.ht/~yantar92/org-mode > 3. cd org-mode/lisp > 4. emacs -Q > 5. M-x org-version > 6. M-x package-install-file /tmp/org-mode/lisp > 7. Observe > > ob-gnuplot.el:45:2: Error: Recursive load: > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/org-element.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/ox.el", > "/home/yantar92/.emacs.d/elpa/org-9.7pre/ox-ascii.el" > > The same does not happen if we skip step (4). > > Also, keeping elpa directory around between the tests triggers various failures. Are you sure that this is not an issue related to org-mode? Could you create a minimal working example to reproduce this issue, by removing as much as possible from the repository while retaining the issue, and then send us a tarball with the remaining files? > In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.38, cairo version 1.17.8) of 2023-08-13 built on localhost > Repository revision: bfde3a4482ce7775f00a17b597daa1b188ef0d43 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 > System Description: Gentoo Linux From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 14 10:02:32 2023 Received: (at 65286) by debbugs.gnu.org; 14 Aug 2023 14:02:32 +0000 Received: from localhost ([127.0.0.1]:34091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVY9P-0006MP-Qj for submit@debbugs.gnu.org; Mon, 14 Aug 2023 10:02:32 -0400 Received: from mout01.posteo.de ([185.67.36.65]:48261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVY9M-0006M8-Ax for 65286@debbugs.gnu.org; Mon, 14 Aug 2023 10:02:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 36217240027 for <65286@debbugs.gnu.org>; Mon, 14 Aug 2023 16:02:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692021742; bh=daZCzE8VF69GxA1TDl4yJALLj4BDBu1Pt8OJDRMgS5o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Oxwy1uF6J1T/ROBL1S2edRnq4SSK/7sqhCs8B2VPcUifF9p+oMcEnJxfzvQ2irpEw AjrF5lBtswHYcpnXBsENz2sKXfM9zudhQvpSpAOwJzoN1c5WknVe2KzNo2qvYtEZN1 YpUQts+QEf0G9H6UQXmDWJI+x8SIRj7IYCppuo2hg3z0YbJdlM3/NnKYJdZzmVt8Ni rG/bsvVG0VWqSSzOKc0EFg4SSpgpIn1kuSPQlySalJeRSuJmo8ERtAUWVu1J5Vg6It cADgjDqhJ7csDQZBF0xh28LLkg8JwFOx8VKkOz46sk/5VApFdUB0J6/d/aYSJ+P4zD cJ4E9mtx7FTvQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RPbgd56TLz9rxG; Mon, 14 Aug 2023 16:02:21 +0200 (CEST) From: Ihor Radchenko To: Philip Kaludercic Subject: Re: bug#65286: 30.0.50; package-install-file for built-in package In-Reply-To: <87fs4livaf.fsf@posteo.net> References: <87o7j9q1nk.fsf@localhost> <87fs4livaf.fsf@posteo.net> Date: Mon, 14 Aug 2023 14:02:48 +0000 Message-ID: <87fs4lpvqv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65286 Cc: 65286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Philip Kaludercic writes: >> Also, keeping elpa directory around between the tests triggers various failures. > > Are you sure that this is not an issue related to org-mode? It might be. But the difference between package-install-file w/without built-in Org loaded is unlikely Org's fault in any case. > Could you create a minimal working example to reproduce this issue, by > removing as much as possible from the repository while retaining the > issue, and then send us a tarball with the remaining files? Sorry, but the issue is triggered by interaction between built-in and non-built-in Org. I have no idea if it is possible at all to create more minimal reproducer. To be clear, I have no clue at all what is going on. I made some relatively innocent changes in Org that added a couple of provide statements. I could see things breaking completely, but not __only__ when built-in Org is loaded. So, any attempt to reduce the reproducer steps will be me trying random things - not very productive unless you absolutely cannot use the reproducer I provided. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 14 10:15:18 2023 Received: (at 65286) by debbugs.gnu.org; 14 Aug 2023 14:15:18 +0000 Received: from localhost ([127.0.0.1]:34100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVYLl-0006en-IV for submit@debbugs.gnu.org; Mon, 14 Aug 2023 10:15:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVYLj-0006eY-HK for 65286@debbugs.gnu.org; Mon, 14 Aug 2023 10:15:16 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5268E240101 for <65286@debbugs.gnu.org>; Mon, 14 Aug 2023 16:15:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692022509; bh=zLQMDR+u9WXaQX0jKbegBKVzBIQyDI0BEbaFP7lNQUU=; h=From:To:Cc:Subject:Autocrypt:Date:Message-ID:MIME-Version:From; b=hvLRsK4s7qpIcx7hm74DFl12OsabmSdE2iHkFlCy/OSWpJx1y3YoJOy2gCgmg2g92 rRge55fenkDpspB1Mg8o8w+UnBYxG6P2hP3W5kYeRcmE7Pzh9+ubUuLkdlcEkaxri+ 3J0fg9B+YXZuA55Js+jHOrPnQDJyKhLzf5VDL2AG7obNgu7PdUTZHWxeK3+irxxgNl eKBU1RkcJVAFHK0z5VJgclK5fxSDGHiwHZqejx3P0dqCfimsLlwE+WtxusdmogGsMg RBl5SkT71nRbpw62OwifBN3HrY0ryRcDRRuZKKv9hZFjR0H0n6q9wVP+46cYUAD7s3 LnWOlME3Z3Gjg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RPbyN5gfPz9rxL; Mon, 14 Aug 2023 16:15:08 +0200 (CEST) From: Philip Kaludercic To: Ihor Radchenko Subject: Re: bug#65286: 30.0.50; package-install-file for built-in package In-Reply-To: <87fs4lpvqv.fsf@localhost> (Ihor Radchenko's message of "Mon, 14 Aug 2023 14:02:48 +0000") References: <87o7j9q1nk.fsf@localhost> <87fs4livaf.fsf@posteo.net> <87fs4lpvqv.fsf@localhost> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM Date: Mon, 14 Aug 2023 14:15:07 +0000 Message-ID: <87pm3pyal0.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65286 Cc: 65286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Ihor Radchenko writes: > Philip Kaludercic writes: > >>> Also, keeping elpa directory around between the tests triggers various failures. >> >> Are you sure that this is not an issue related to org-mode? > > It might be. But the difference between package-install-file w/without > built-in Org loaded is unlikely Org's fault in any case. For the record, these are the changes between your checkout and what is on master: --=-=-= Content-Type: text/plain Content-Disposition: inline diff -u /tmp/org-mode/lisp/ob-gnuplot.el /home/philip/Source/emacs/lisp/org/ob-gnuplot.el --- /tmp/org-mode/lisp/ob-gnuplot.el 2023-08-14 16:10:37.615919936 +0200 +++ /home/philip/Source/emacs/lisp/org/ob-gnuplot.el 2023-04-05 22:53:26.932222097 +0200 @@ -3,7 +3,7 @@ ;; Copyright (C) 2009-2023 Free Software Foundation, Inc. ;; Author: Eric Schulte -;; Maintainer: Ihor Radchenko +;; Maintainer: Ihor Radchenko ;; Keywords: literate programming, reproducible research ;; URL: https://orgmode.org @@ -40,9 +40,11 @@ ;;; Code: -(require 'ob-9.7 "ob") -(require 'org-macs-9.7 "org-macs") -(require 'ox-ascii-9.7 "ox-ascii") +(require 'org-macs) +(org-assert-version) + +(require 'ob) +(require 'org-macs) (declare-function org-time-string-to-time "org" (s)) (declare-function orgtbl-to-generic "org-table" (table params)) @@ -196,7 +198,7 @@ (defun org-babel-execute:gnuplot (body params) "Execute a block of Gnuplot code. This function is called by `org-babel-execute-src-block'." - (org-require-package 'gnuplot) + (require 'gnuplot) (let ((session (cdr (assq :session params))) (result-type (cdr (assq :results params))) (body (org-babel-expand-body:gnuplot body params)) @@ -260,7 +262,7 @@ If there is not a current inferior-process-buffer in SESSION then create one. Return the initialized session. The current `gnuplot-mode' doesn't provide support for multiple sessions." - (org-require-package 'gnuplot) + (require 'gnuplot) (unless (string= session "none") (save-window-excursion (gnuplot-send-string-to-gnuplot "" "line") @@ -293,33 +295,17 @@ (require 'ox-org) (with-temp-file data-file (insert (let ((org-babel-gnuplot-timestamp-fmt - (or (plist-get params :timefmt) "%Y-%m-%d-%H:%M:%S")) - ;; Create custom limited backend that will disable - ;; advanced ASCII export features that may alter the - ;; original data. - (ob-gnuplot-data - (org-export-create-backend - :parent 'ascii - :transcoders - `(;; Do not try to resolve links. Export them verbatim. - (link . (lambda (link _ _) (org-element-interpret-data link))) - ;; Drop emphasis markers from verbatim and code. - ;; This way, data can use verbatim when escaping - ;; is necessary and yet be readable by Gnuplot, - ;; which is not aware about Org's markup. - (verbatim . (lambda (verbatim _ _) (org-element-property :value verbatim))) - (code . (lambda (code _ _) (org-element-property :value code))))))) + (or (plist-get params :timefmt) "%Y-%m-%d-%H:%M:%S"))) (orgtbl-to-generic table (org-combine-plists - `( :sep "\t" :fmt org-babel-gnuplot-quote-tsv-field + '( :sep "\t" :fmt org-babel-gnuplot-quote-tsv-field ;; Two setting below are needed to make :fmt work. :raw t - :backend ,ob-gnuplot-data) + :backend ascii) params))))) data-file) (provide 'ob-gnuplot) -(provide 'ob-gnuplot-9.7) ;;; ob-gnuplot.el ends here Diff finished. Mon Aug 14 16:12:51 2023 --=-=-= Content-Type: text/plain The (org-assert-version) seems new, with this check `(unless (or org--inhibit-version-check (equal (org-release) ,(org-release))) ... could evaluating (org-release) during macro-expansion cause this recursive load issue? >> Could you create a minimal working example to reproduce this issue, by >> removing as much as possible from the repository while retaining the >> issue, and then send us a tarball with the remaining files? > > Sorry, but the issue is triggered by interaction between built-in and > non-built-in Org. I have no idea if it is possible at all to create more > minimal reproducer. > To be clear, I have no clue at all what is going on. I made some > relatively innocent changes in Org that added a couple of provide > statements. I could see things breaking completely, but not __only__ > when built-in Org is loaded. So, any attempt to reduce the reproducer > steps will be me trying random things - not very productive unless you > absolutely cannot use the reproducer I provided. No, sorry I couldn't reproduce it on my system :/ M-x emacs-version GNU Emacs 30.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-08-14 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 14 11:09:39 2023 Received: (at 65286) by debbugs.gnu.org; 14 Aug 2023 15:09:39 +0000 Received: from localhost ([127.0.0.1]:34175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVZCN-00083L-CF for submit@debbugs.gnu.org; Mon, 14 Aug 2023 11:09:39 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVZCL-000837-Ki for 65286@debbugs.gnu.org; Mon, 14 Aug 2023 11:09:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 37962240104 for <65286@debbugs.gnu.org>; Mon, 14 Aug 2023 17:09:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692025771; bh=1dr81JA5oaOIQ8aMmbEtFY9nd5ewB9Ytt05owoE3ji4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=jmWzXjj6znf4BtecOXaKJjp5g8vE8ELreY8utpTZOScr+gZSVM1vbBqfeMK6jzJwF eQECPbwzopja/cTqFpy5mBRZ1eGOYLbLA1RRJYY4TwKqy7+a3Ufqq6oWTJYmBl6J2W msVM3TpVgjEOoAn6y1T6VCDBdAS2W/LEvwKlPmUOIc7uIDWhz13ytHDoUu100EWMwx o8FXHBUMgUjvky6N3k5kUWSEiLUjfvLL4+p1uUDVPCsOo491FDaAKI1zxXpXYLB1fj +Kq41Y0wUl6yll+4Zy7jw/l3OLKUbpgfaDU1d4w7HZujm+LldkD0JvT45w8sfUjKIJ +nzipjjVbHp6A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RPd963tVPz9rxF; Mon, 14 Aug 2023 17:09:30 +0200 (CEST) From: Ihor Radchenko To: Philip Kaludercic Subject: Re: bug#65286: 30.0.50; package-install-file for built-in package In-Reply-To: <87pm3pyal0.fsf@posteo.net> References: <87o7j9q1nk.fsf@localhost> <87fs4livaf.fsf@posteo.net> <87fs4lpvqv.fsf@localhost> <87pm3pyal0.fsf@posteo.net> Date: Mon, 14 Aug 2023 15:09:53 +0000 Message-ID: <877cpxpsn2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65286 Cc: 65286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Philip Kaludercic writes: > For the record, these are the changes between your checkout and what is > on master: The same error happens for a number of other libraries. I just did not list all the errors in the initial report. Also, the error does not happen when using Org main. I started getting error after the following edits in across Org libraries: > -(require 'ob-9.7 "ob") > -(require 'org-macs-9.7 "org-macs") > -(require 'ox-ascii-9.7 "ox-ascii") > +(require 'org-macs) > +(org-assert-version) > ... > (provide 'ob-gnuplot) > -(provide 'ob-gnuplot-9.7) > The (org-assert-version) seems new, with this check > > `(unless (or org--inhibit-version-check (equal (org-release) ,(org-release))) > ... > > could evaluating (org-release) during macro-expansion cause this > recursive load issue? Nope. `org-release' is defined in automatically generated org-version.el library, which does not depend on anything: ;;; org-version.el --- autogenerated file, do not edit -*- lexical-binding: t -*- ;; ;;; Code: ;;;###autoload (defun org-release () "The release version of Org. Inserted by installing Org mode or when a release is made." (let ((org-release "9.6.7")) org-release)) ;;;###autoload (defun org-git-version () "The Git version of Org mode. Inserted by installing Org or when a release is made." (let ((org-git-version "release_9.6.7-13-g99cc96")) org-git-version)) (provide 'org-version) ;; Local Variables: ;; version-control: never ;; no-byte-compile: t ;; coding: utf-8 ;; End: ;;; org-version.el ends here >> To be clear, I have no clue at all what is going on. I made some >> relatively innocent changes in Org that added a couple of provide >> statements. I could see things breaking completely, but not __only__ >> when built-in Org is loaded. So, any attempt to reduce the reproducer >> steps will be me trying random things - not very productive unless you >> absolutely cannot use the reproducer I provided. > > No, sorry I couldn't reproduce it on my system :/ > > M-x emacs-version > GNU Emacs 30.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-08-14 Curious. To be sure, I just pulled the latest master, did autogen -> configure (with no arguments) -> make bootstrap, and followed the steps to reproduce. I can still see the same problem. Same using Emacs 29, Emacs 28, and Emacs 27. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 18 06:43:18 2023 Received: (at 65286) by debbugs.gnu.org; 18 Aug 2023 10:43:18 +0000 Received: from localhost ([127.0.0.1]:46169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWwwo-0007RH-9Y for submit@debbugs.gnu.org; Fri, 18 Aug 2023 06:43:18 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:46581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWwwk-0007Qy-06 for 65286@debbugs.gnu.org; Fri, 18 Aug 2023 06:43:16 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4ff933f9ca8so1087873e87.1 for <65286@debbugs.gnu.org>; Fri, 18 Aug 2023 03:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692355387; x=1692960187; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=VKSZeGM8ESazAT2nO75+n1UM1tuKxOAQjAYg7DAgBPw=; b=KHBTRoXe5utRHMBFzsRvp8Yo3V3rnki3c21xOt3pFBX4cYneBTUFSbDYWrHLztRyiT Yek5q7x4Z6usFfwZm6LQBZdeVS4ff6sjS7bIU5JWr8y0WbRFAdnpH+lDVctImL+NSZoX ZPy6e0uvRx3jHnGwNN1+2VwyOK1KAgtQE8t9Zz4C/ufNkGEKuNPU+kzWoheLQZ2rX+Qk F5DO41sdKULcFNhLw72c5bbemJGWihWs0qVOLQaX2jsleqEGelt/R5vPrRIAVRv3rj/8 hp4m3+q7BqE6DrhuKUIQsmtRmenEJJEp/vHIrITqBK+X986gTKKHPrAioZUMm1aihsBX N3XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692355387; x=1692960187; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VKSZeGM8ESazAT2nO75+n1UM1tuKxOAQjAYg7DAgBPw=; b=XDU5Vusw84WfszrL9Ye8JoVYUeMBqGbN3ywtPxaSwyLpHn/YJurGsBMVJchj+VzHvz NP9RjawyRxc6+kzCPyk2vYOJOJ3Gx8bv7iLWWE2QDlJ2Y2TdiQ16b691d0vT3s/9ZkHJ 4dNM27VD4C+tu5/f0ySiBxMs6pmqh6Klh4UQlTXuOrW7LUURifR/+j2KE4fnAbfYeQJ9 jY7//ZP74uzVA/zffBneUGQaWqDxRAWOpUliLvbwN2Bh9ozMPqOfAvfgYBVX4CYfUzo5 ZCD2CM8SF+syrdoRbmExVIFrgIXWLNDe9dgscg5Op11khIERHe7f/EU9SoGc9N6m3oy9 g4VQ== X-Gm-Message-State: AOJu0Ywv+VfVmeOewEBQgdv+h3Nf01sgZUe1iWNqMdXgRvtg28hKHKyT n7AiGq9Z+PTmO3e/9ExbxBc= X-Google-Smtp-Source: AGHT+IGtOqMypas7zX2y+A3NbN694SnlquWlXlBcB8NW9+dy6stUa5BjwAXS+QWzDWzysIlWWPDBIQ== X-Received: by 2002:a05:6512:477:b0:4f8:6833:b13c with SMTP id x23-20020a056512047700b004f86833b13cmr1382791lfd.14.1692355387164; Fri, 18 Aug 2023 03:43:07 -0700 (PDT) Received: from [10.42.0.17] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id v10-20020a19740a000000b004ff8e845bcbsm283927lfe.301.2023.08.18.03.43.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Aug 2023 03:43:06 -0700 (PDT) Message-ID: <459e396b-075a-4f22-c6f0-1c3d354676b0@gmail.com> Date: Fri, 18 Aug 2023 17:43:05 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: bug#65286: 30.0.50; package-install-file for built-in package Content-Language: en-US, ru-RU To: Ihor Radchenko , Philip Kaludercic References: <87o7j9q1nk.fsf@localhost> <87fs4livaf.fsf@posteo.net> <87fs4lpvqv.fsf@localhost> <87pm3pyal0.fsf@posteo.net> <877cpxpsn2.fsf@localhost> From: Max Nikulin In-Reply-To: <877cpxpsn2.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 65286 Cc: 65286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.0 (--) On 14/08/2023 22:09, Ihor Radchenko wrote: > Philip Kaludercic writes: >> No, sorry I couldn't reproduce it on my system :/ > Curious. > To be sure, I just pulled the latest master, did autogen -> configure > (with no arguments) -> make bootstrap, and followed the steps to > reproduce. I can still see the same problem. Spacemacs users recommend to install from file, not from ELPA https://github.com/syl20bnr/spacemacs/issues/15896#issuecomment-1530129761 Maybe there is really some subtle difference how `package-install-file' processes packages. Something like running Emacs<29 from source tree vs. make install.