From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57972: 29.0.50; Autoloaded function raises (void-function org-element-cache-reset) when called within major-mode body Date: Wed, 21 Sep 2022 14:35:56 +0300 Message-ID: <83k05xufhf.fsf@gnu.org> References: <87fsglxh24.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21252"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57972@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 13:44:08 2022 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 1oay99-0005JT-Nc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 13:44:07 +0200 Original-Received: from localhost ([::1]:56328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oay98-0001XO-Qv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 07:44:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oay2I-0006GQ-PF for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oay2I-0008No-Gh for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oay2I-0000JP-6l for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2022 11:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57972 X-GNU-PR-Package: emacs Original-Received: via spool by 57972-submit@debbugs.gnu.org id=B57972.16637601711139 (code B ref 57972); Wed, 21 Sep 2022 11:37:02 +0000 Original-Received: (at 57972) by debbugs.gnu.org; 21 Sep 2022 11:36:11 +0000 Original-Received: from localhost ([127.0.0.1]:60915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oay1T-0000II-2R for submit@debbugs.gnu.org; Wed, 21 Sep 2022 07:36:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oay1N-0000Hk-ND for 57972@debbugs.gnu.org; Wed, 21 Sep 2022 07:36:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oay18-0008CU-IN; Wed, 21 Sep 2022 07:35:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=yloFWhirO8TrRrERag752SBVpsOA/m07fRy89Y34xno=; b=pA0fRXB6lk4617sfAtfb JyPnaAonFsEZipVrbWalTDjcUq4FErUP8gmplSTha3bW4rzYlbhBm+jp9jIPhVZxY2oDiYg7XAOr+ bte4quDLT8rvgDkl7fQoKwTPC2KMcs8pmjMPhNPqM1I4OuuAfBX1eVb7RKNyQBx4n2qjt8PDqCv4u fF3NsUZkR7iUhyyaPvEMfXCUuka2FW8UtD/e7YQvizdeZW+H/QgaRaixK35r320ifo//f9UuAOrWj 7d8GFbbYlza/32ZFPkmPdsVNRpqJbuiPWl4LcLPZhGdJuvNnRQZlAcxrtrZZrRUqHfQBlAYK/TY88 7XVRBXNg6BYBbw==; Original-Received: from [87.69.77.57] (port=3474 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oay15-0000FF-UX; Wed, 21 Sep 2022 07:35:50 -0400 In-Reply-To: <87fsglxh24.fsf@localhost> (message from Ihor Radchenko on Wed, 21 Sep 2022 16:33:39 +0800) 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" Xref: news.gmane.io gmane.emacs.bugs:243307 Archived-At: > From: Ihor Radchenko > Date: Wed, 21 Sep 2022 16:33:39 +0800 > > I am forwarding a bug report from Org mode. > https://list.orgmode.org/4a9d4298-4af6-3e11-63c3-87bf7125f61b@oracle.com/T/#u > > I am able to reproduce the reported steps (see below) and I find that > the void-function error is raised when calling (org-mode). `org-mode' > body calls `org-element-cache-reset', which should be autoloaded from > org-element.el. Yet, void-function error is raised. > > I either misunderstand something about autoload or it is some kind of > Emacs bug. > > Steps to reproduce: > > https://list.orgmode.org/4a9d4298-4af6-3e11-63c3-87bf7125f61b@oracle.com/T/#u > > Org mode version is the latest from > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/ > > > I ran this: > > dortmann@ddo-linux:.emacs.d$ emacs -Q --debug-init asdf.el > > ... and then ran eval-buffer. > > > > Where asdf.el has this content: > > (add-to-list 'load-path "/home/dortmann/src/git-org-mode/lisp") > > (require 'org) > > > > (setq org-capture-templates > >       `(("c" "Item to current clocked task" checkitem > >        (clock) > >        "%i%?" :prepend t :empty-lines 1))) > > > > Then I loaded asdf.org which has this: > > * TODO start clock on this test item > > > These two lines are in my *Messages* buffer: > > File mode specification error: (void-function org-element-cache-reset) > > Error during redisplay: (jit-lock-function 1) signaled (void-variable > > org-element-citation-prefix-re) Would it be possible to have more info about the details? Like what are org-element-cache-reset and org-element-citation-prefix-re, and how do they enter the picture in the above scenario? TIA