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 20:32:10 +0800 Message-ID: References: <87fsglxh24.fsf@localhost> <83k05xufhf.fsf@gnu.org> <8735clx8cl.fsf@localhost> <875yhh6iwz.fsf@gnus.org> <87zgetvsj7.fsf@localhost> <87k05w6hw3.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005ff1db05e92f1f73" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1406"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57972@debbugs.gnu.org, Eli Zaretskii To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 14:43:12 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 1oaz4F-000Aec-5v for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 14:43:07 +0200 Original-Received: from localhost ([::1]:58878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaz4D-0001kn-VT for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 08:43:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaytW-0001V4-Jp for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:32:14 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaytW-0002n0-9e for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oaytV-0006EN-Vl for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:32: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 12:32:01 +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.166376349223908 (code B ref 57972); Wed, 21 Sep 2022 12:32:01 +0000 Original-Received: (at 57972) by debbugs.gnu.org; 21 Sep 2022 12:31:32 +0000 Original-Received: from localhost ([127.0.0.1]:32852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oayt2-0006DY-A9 for submit@debbugs.gnu.org; Wed, 21 Sep 2022 08:31:32 -0400 Original-Received: from mail-lj1-f177.google.com ([209.85.208.177]:37865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oayt0-0006DK-3v for 57972@debbugs.gnu.org; Wed, 21 Sep 2022 08:31:30 -0400 Original-Received: by mail-lj1-f177.google.com with SMTP id j24so6303517lja.4 for <57972@debbugs.gnu.org>; Wed, 21 Sep 2022 05:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=erf1PsXGsNpRfEIl3DPXnp3BZC9pGDHlJPZQz3jn/cY=; b=DygK+MPe+x6SNHKznRUGUNPFu3oRC0eyNA6UwKJnEAVHe7x3K5ASgwLX4gk3fJ/XLz 53StBhcZpRStmoRI9WzTTu3UvmV8Fb3Okv2CAfMyaNkJ0jHzqXnCfzX1K4K6kFsGVpi6 1dFxsdnaObogQDSdxdUNmzmtHrK7GQ262wqoPqJFl0kV+CW0Ilg0olyq2MXM4+L0uxOb SYk0RSfwcMwPBI2rfhURKu2iWO+YEFtKF1MDQjZ1zXNtFy3Dg12WsaKB6mYoQnPoc33H EsspJrUtQXJ5pCuyLnnU8kd+nvPAL1yxpGKJR03X1WGGbI/STQtOAPY1ZAJk4nxhLi3Q f+DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=erf1PsXGsNpRfEIl3DPXnp3BZC9pGDHlJPZQz3jn/cY=; b=VxW2MofRJ2kkwFElxjSJwvL3NuYmg7WrUrjMFdhLI0x0o6q7P8/HzaGvG48Tpq07dH VksaiGnwa02+Epf3B0qTdXHOBSSAJym6M6FGcQ01YaPGRxlS7VN1PPrb42X9OhYfKYg4 Wbo91J/nYSsKBisQYPFDBdo95rAiVg1tcMsIYKJmSgZxhS6iua+pxwIBj5aMpzx1ifj8 Z8ieUmu6ZSk6tSCHVBVlWXfZnY1OmTAOIZYQ/KmaDRNMDOZxT5mrgRTNVBZ9QbD6lF+y npFKeKoCN0dr81S32tIqSGnwsYHNeYI7rJIONIs6ENxBbF1TYIX9KlqR9TeNUHFbn/+J rNyw== X-Gm-Message-State: ACrzQf3+SpCTCVLnMIBy5t9bxQ282gdayfJMHHHxz7CRYOBX3aIKfsS6 0viNV2VSNeoaKMZFJH1hlZB52iSKPK1n1mDx81A= X-Google-Smtp-Source: AMsMyM5gzzRffdBTPgmaXiA/VC16pOxB2tgAUANMA+1eD5nXYyP3U2SB1pddzXGZw63VOK0mhAVxTloS0ecE1jTb464= X-Received: by 2002:a2e:541c:0:b0:26c:16d6:6872 with SMTP id i28-20020a2e541c000000b0026c16d66872mr8595237ljb.220.1663763482667; Wed, 21 Sep 2022 05:31:22 -0700 (PDT) In-Reply-To: <87k05w6hw3.fsf@gnus.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:243325 Archived-At: --0000000000005ff1db05e92f1f73 Content-Type: text/plain; charset="UTF-8" > > > You have some confusing stuff in org.el -- you have a > > > (declare-function org-element-cache-reset "org-element" (&optional all)) > > > to suppress warnings in org.el about that function, but > > org-element-cache-reset should be in org-loaddefs, which org.el loads > > already, so it should be unnecessary. The declare statement is there for a single reason---to pacify native-comp warnings. If it isn't unnecessary, then something else is going wrong somewhere, > I'd have thought? But I haven't tried debugging further. > I removed the declare statement. The bug persists. Also, org-element-cache-reset is present in org-loaddefs.el Best, Ihor --0000000000005ff1db05e92f1f73 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> You have some confusing stuff in org.el -- you have= a

> (declare-function org-element-cache-reset "org-element" = (&optional all))

> to suppress warnings in org.el about that function, but
> or= g-element-cache-reset should be in org-loaddefs, which org.el loads
>= already, so it should be unnecessary.

The = declare statement is there for a single reason---to pacify native-comp warn= ings.
=C2=A0=C2=A0
=C2=A0If it isn't unnecessar= y, then something else is going wrong somewhere,
I'd have thought?=C2=A0 But I haven't tried debugging further.
<= /blockquote>

I removed the declare statement. The bug pe= rsists. Also, org-element-cache-reset is present in org-loaddefs.el

Best,
Ihor=C2=A0
--0000000000005ff1db05e92f1f73--