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#57972: 29.0.50; Autoloaded function raises (void-function org-element-cache-reset) when called within major-mode body Date: Wed, 21 Sep 2022 16:33:39 +0800 Message-ID: <87fsglxh24.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38861"; mail-complaints-to="usenet@ciao.gmane.io" To: 57972@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 10:42:34 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 1oavJS-0009yD-Mp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 10:42:34 +0200 Original-Received: from localhost ([::1]:60160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oavJR-0006Fe-8O for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 04:42:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oavBC-0006yE-6x for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 04:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oavBB-0007Ta-To for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 04:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oavBB-0005UF-NX for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 04:34: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: Wed, 21 Sep 2022 08:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57972 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166374918921014 (code B ref -1); Wed, 21 Sep 2022 08:34:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Sep 2022 08:33:09 +0000 Original-Received: from localhost ([127.0.0.1]:60587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oavAJ-0005Sq-6D for submit@debbugs.gnu.org; Wed, 21 Sep 2022 04:33:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oavA6-0005SC-AT for submit@debbugs.gnu.org; Wed, 21 Sep 2022 04:33:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oavA4-00063E-Fh for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 04:32:54 -0400 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:35400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oavA2-0007Hr-Fi for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 04:32:52 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id q35-20020a17090a752600b002038d8a68fbso9477517pjk.0 for ; Wed, 21 Sep 2022 01:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date; bh=53Ce5y4FlVWSkG2+VyCoFbCRr+FBUjb6521cYr5EEso=; b=n6Vq3KF/lNc0bqPQXy4KcoNJV8/LT6ONQHOZR/zCFxNQNRaKFjHSk07jIAiclBydAp y5yisJ3Cst7OZ+7JXXajs4c/DtRyg/+GQg1umIqZpKY1PwRAHt0S9/nklWCir5pBQTYR 5Kry84B+9kJ4fnlsP9ozBDkwn1JgaABSP/RoFfBlfs3WRaTo+2vUGd3savlgqVZx4WIs U/BuelD1ByEJAbjaZRb1rv2yiXgqFaRo0HQtbFqH4Ztq0qY/m4sraS4MT+SvLua4Erj0 cjTZTNnOvPNvZyQq7tXAB9q0uuJkyHHXBvH3umfatv3qjBtcIJ2EoYclAIDH02KHU1Qz 3GRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=53Ce5y4FlVWSkG2+VyCoFbCRr+FBUjb6521cYr5EEso=; b=qi1t4N153GdLaOiy7YFeky0gdALL7HEz3KxI8ZgZOnYkW3Nt1KEdwUDBj4xXvE8hqr qRuvWeCtlKn3iKmMmmTJPLjQH2PdKtwTilq+z4rXCfjxos3SSvnb/kZbZN+J9YiYV2GI YUy5JfHA8cgLWPjQ+Fy6/WCd8J9f8O1HgPZMdZdnCoZGhFCj8nMkdzXBuJSND1FEc8lu XCsiyIb06o/zkF/H1vd1MYnlb2J/1jnoxOAnYXr5tl2R7Uyn2gAi1Y63Ddo4me+yFhVA ZKhcDXGQxRRN0WLpH/01C00QRhcBCOV27dF2BNDEHiOi7n6/fIClldE1BFJc1LS7aXQZ LpAQ== X-Gm-Message-State: ACrzQf0qZRDUfhkK3hMlYzrPR6Y+9YrhryVnfcZWomVfLj68Wyxea7I2 0Mr/C6qAjz81z1BixkPLK64Pw0ZjYpo= X-Google-Smtp-Source: AMsMyM6YYlxhatja5yNqnhv4lBDiM52zgX15fkQL3MSXaywkcmJgBUG4dEYwlTprkyZDQbXlCCvU9g== X-Received: by 2002:a17:902:e808:b0:178:1520:b255 with SMTP id u8-20020a170902e80800b001781520b255mr3593131plg.54.1663749168109; Wed, 21 Sep 2022 01:32:48 -0700 (PDT) Original-Received: from localhost ([1.83.154.224]) by smtp.gmail.com with ESMTPSA id d80-20020a621d53000000b0053e6d352ae4sm1501603pfd.24.2022.09.21.01.32.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 01:32:45 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:243285 Archived-At: Hi, 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. >=20 > Where asdf.el has this content: > (add-to-list 'load-path "/home/dortmann/src/git-org-mode/lisp") > (require 'org) >=20 > (setq org-capture-templates > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 `(("c" "Item to current clocked task" che= ckitem > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (clock) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "%i%?" :prepend t :empty-lines 1))) >=20 > 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=20 > org-element-citation-prefix-re) In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) of 2022-09-07 built on localhost Repository revision: 473313d2a85a7ae73daf5cc7c205f6285286eecf Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Gentoo Linux --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92