From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen 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:17:48 +0200 Message-ID: <87k05w6hw3.fsf@gnus.org> References: <87fsglxh24.fsf@localhost> <83k05xufhf.fsf@gnu.org> <8735clx8cl.fsf@localhost> <875yhh6iwz.fsf@gnus.org> <87zgetvsj7.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35486"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57972@debbugs.gnu.org, Eli Zaretskii To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 14:49:27 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 1oazAN-00092X-0G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 14:49:27 +0200 Original-Received: from localhost ([::1]:50068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oazAL-0007Wi-TR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 08:49:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaygz-0000Rw-AH for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:19:19 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaygw-0008Ba-1g for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oaygv-0005sb-Sd for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 08:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2022 12:19: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.166376268622540 (code B ref 57972); Wed, 21 Sep 2022 12:19:01 +0000 Original-Received: (at 57972) by debbugs.gnu.org; 21 Sep 2022 12:18:06 +0000 Original-Received: from localhost ([127.0.0.1]:32826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oayg2-0005rS-50 for submit@debbugs.gnu.org; Wed, 21 Sep 2022 08:18:06 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:37942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oayft-0005ql-SP for 57972@debbugs.gnu.org; Wed, 21 Sep 2022 08:18:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fDU7VpsDhnCMF6YMLm4EiwDSEpXhjHIZ2EhtNUZXwpo=; b=kuSNGLWA+e+T1LYM+c+G/R7H+p vR3kqm691qaBv5bx7qcZo1zCF/pK00IrCM9yrLI/5jYrcvlA3MnlPfUX0J7QZKPAhnWs1FkZt7uWP i2YmYqE7tVEfJMlePDKDk1J1DGlxWHWttNWuzZ46QjPXsSZfcm1fhzIsA6fpVgQWaveI=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oayfk-0004zp-SM; Wed, 21 Sep 2022 14:17:51 +0200 In-Reply-To: <87zgetvsj7.fsf@localhost> (Ihor Radchenko's message of "Wed, 21 Sep 2022 20:08:44 +0800") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWkRUzBsbE5Jiv/ //9EG+24AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YJFQs7EqVA5nIAAAGjSURBVCjPPZIxa+NAEIVH IgrBlTCWCamSFIe8v2IJOIUrWewITlWK5Ej0K4SwDuHqcpxNksoRkVm9X3mzkslW+82w7808lqYN Lq8vJ7+r+FBSut1O2zccYduSzNXHvH1/OFaLdkP+G+ZoblsAByLywwsi/I2pJPKIdJD3MxpPqGfo H4crU7QsYL9IE635LEoBy1IViFiUOtYCHge5QD8AMeffHQEjwMtE7hEzrwsrpaEhp+hMZMgfwWzM PghPHa6f9gHrE3TP97WAE1jw02KAQKA9MM5ZwGO+24LT0ml7zlS9ZrsT8AqvTmV0zeFkdprCtXnR q4ifYRMy+UZdmGGnhMK0RsOcQeEPUWaxcwAcic56Jc//KbQSoqd6aezc6g5ks6wWsGJUyCR+54IQ 05eAJxgh5J8sJnU6whBPlygnwEuWam8UIoGAV19xw/iciJpXx2w+9sjgwCU4R60GuHUaNnc+RL8q AZnnWgR0al3CWzcN6ysbcHYIaSmmeopPgzoRkM456pUNJAGiGf2wdzYmvyGS33ETwaqyssNP6Aso 1VZQ/wGiGsRQg+CqXwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wOS0yMVQxMTo1OToxOCswMDow MLRFwnsAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDktMjFUMTE6NTk6MTgrMDA6MDDFGHrHAAAA AElFTkSuQmCC X-Now-Playing: The Waitresses's _Wasn't Tomorrow Wonderful?_: "Wasn't Tomorrow Wonderful?" 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:243329 Archived-At: Ihor Radchenko writes: >> I'm not at all sure I understand myself. A backtrace here would be >> helpful. > > Debugger entered--entering a function: > * message("File mode specification error: %s" (void-function > org-element-cache-reset)) > normal-mode(t) > after-find-file(nil t) > find-file-noselect-1(# "/tmp/bug.org" nil nil > "/tmp/bug.org" (127741036 26)) > find-file-noselect("/tmp/bug.org" nil nil t) > find-file("/tmp/bug.org" t) > funcall-interactively(find-file "/tmp/bug.org" t) > command-execute(find-file) > > I generated the backtrace using M-x debug-on-entry org-mode and opening > bug.org. The backtrace appears at the moment I try to step through > org-element-cache-reset call inside org-mode. 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. If it isn't unnecessary, then something else is going wrong somewhere, I'd have thought? But I haven't tried debugging further.