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 19:41:46 +0800 Message-ID: <8735clx8cl.fsf@localhost> References: <87fsglxh24.fsf@localhost> <83k05xufhf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27576"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57972@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 13:45:23 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 1oayAM-0006zu-Iv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 13:45:22 +0200 Original-Received: from localhost ([::1]:50660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oayAL-0002lP-FN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 07:45:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oay79-0000oR-5X for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oay78-0000ih-Fp for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oay78-0000S6-Au for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 07:42:02 -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 11:42: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.16637604631654 (code B ref 57972); Wed, 21 Sep 2022 11:42:02 +0000 Original-Received: (at 57972) by debbugs.gnu.org; 21 Sep 2022 11:41:03 +0000 Original-Received: from localhost ([127.0.0.1]:60930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oay6A-0000Qc-M2 for submit@debbugs.gnu.org; Wed, 21 Sep 2022 07:41:02 -0400 Original-Received: from mail-pf1-f175.google.com ([209.85.210.175]:36479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oay68-0000Ps-Fg for 57972@debbugs.gnu.org; Wed, 21 Sep 2022 07:41:00 -0400 Original-Received: by mail-pf1-f175.google.com with SMTP id y136so5652430pfb.3 for <57972@debbugs.gnu.org>; Wed, 21 Sep 2022 04:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=MOm84idHgpxRKB7i7fGPlk5Uuq1HXdegOnNay74fB/4=; b=kJ8pHbGKuoht+UGeWsgpv8N2dVRsodxhHJnC0rcglf7UnRyN401qxAGuuQ/layt9lh q78mfT4uakDO4PcaJY3d5FIaFfJMWytk/IJnwv77+t+L0FFZmQIDFhNxoSaZ+FhWK7I4 oot+LvDC0V20Mxc0jwEGbo1GM197BbqiGPdWBqve7KQFJ1cJBCQsqTa2FenaxysIjxjc LuogqZLmRlY6VnPAM8bMPnAoWq+V05t+5x0qrTfq9Ojk9ZpzE9JvxaRPHCGGr54HS7FF tLe/vLRPuyf2jIMdYxxbacNh9V3GaaTAMsDn+7V/mnjd/tI2tpq54bQfrExcTysvksbQ JiOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=MOm84idHgpxRKB7i7fGPlk5Uuq1HXdegOnNay74fB/4=; b=N/nz+dk73wERATn3vFSdnB9yZj7BrE1+WOYOwnQ938WAwZ9PVDVLHT1SK6J+1juCL7 woKBfNeorBQ+0pk6zwkWpZXLBnAi81f8+nhR7oe7xrq88woGDRN71weDO65UMA+bvzZA MCBPh0S7QeFC8bebdXWRQYwA+nB/aqizJWzHztuFnoKXX3gN54r4AX+MDF6lgdCqFjGe d91l0GTxqssf2PF1CVhVPkWgTGfL2LVI2jw2aQEfwjQ5WYWrGdkNSTFS0eQMHB9LRP1Z rBGKCx7u5QxA38eMxi0yeiR618qoMsm+M9ycE8r0i6ehUtPM7zfcd8MBTBjUeAsp5gxn +Zcg== X-Gm-Message-State: ACrzQf0mSG1T1vlStSbhIjdtL74cMGbZ4vvyPY0TuUJk2tGnxTdQWLkb iMOUSuYMlDyt2xrj+ncYS4Q= X-Google-Smtp-Source: AMsMyM7M60KvOhvw/K7ssyM8e+sLv+/ovlPB066aoZ1HM5FtUZ5/B7p1egciVn/Z+HF2Z8ar+IctFw== X-Received: by 2002:a65:4bc1:0:b0:439:e6a5:122a with SMTP id p1-20020a654bc1000000b00439e6a5122amr16723273pgr.443.1663760454394; Wed, 21 Sep 2022 04:40:54 -0700 (PDT) Original-Received: from localhost ([2409:8a70:2b5:ad00:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id x8-20020a628608000000b005409c9d2d41sm1916109pfd.62.2022.09.21.04.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 04:40:53 -0700 (PDT) In-Reply-To: <83k05xufhf.fsf@gnu.org> 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:243308 Archived-At: Eli Zaretskii writes: > 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? Let's forget about org-element-citation-prefix-re for now. org-element-cache-reset is an autoloaded function defined inside org-element.el Major mode body `org-mode' from org.el is calling `org-element-cache-reset' as part of Org mode loading. org.el does not contain (require 'org-element). Instead, it is assumed that `org-element-cache-reset' is autoloaded by Emacs. Let me know if something is not clear or if you need more detailed steps. -- 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