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#61685: 28.2; imenu in org-mode is wrong for the first org file opened in a given session Date: Wed, 22 Feb 2023 11:14:20 +0000 Message-ID: <87fsayc5pv.fsf@localhost> References: <87r0ui3lvl.fsf@kuba-orlik.name> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17771"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61685@debbugs.gnu.org To: Kuba Orlik Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 22 12:14:38 2023 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 1pUn53-0004PX-R1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Feb 2023 12:14:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUn4X-00089G-0u; Wed, 22 Feb 2023 06:14:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUn4U-000890-T0 for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 06:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUn4U-0002wJ-Hl for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 06:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUn4U-0002Nu-1j for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 06:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Feb 2023 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61685 X-GNU-PR-Package: emacs Original-Received: via spool by 61685-submit@debbugs.gnu.org id=B61685.16770644319139 (code B ref 61685); Wed, 22 Feb 2023 11:14:02 +0000 Original-Received: (at 61685) by debbugs.gnu.org; 22 Feb 2023 11:13:51 +0000 Original-Received: from localhost ([127.0.0.1]:58124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUn4J-0002NJ-68 for submit@debbugs.gnu.org; Wed, 22 Feb 2023 06:13:51 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:38231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUn4G-0002N6-SM for 61685@debbugs.gnu.org; Wed, 22 Feb 2023 06:13:50 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8C498240733 for <61685@debbugs.gnu.org>; Wed, 22 Feb 2023 12:13:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1677064422; bh=owcSSFH0Kl63CO4nsqXHit46C6vqZHIalxS3a/sks3c=; h=From:To:Cc:Subject:Date:From; b=GaLZ6of2TijlsoBRW8W0M1Oz3PEudOKQeOiDmns5pv5Ose6zb49Acob914vnwVIee MS8h1kFqXoGf5dW7nd/WoLa1KNKpQZ4KCX5v7oVCjYT/ZPfVfh3sSErmEFJ2lJLYsT ZWh37cPJhfxWHIx0McX1BngXNcjFArZzvtFeVJskPzIBw+mBW0spxpzg5bYWQdWS86 YiUW0fI/Q6timNUGf8uktuJRBSkXe+jAy1atl3azhZ3MidVAhEiPAvC3H2b8geQTsl pgs9FmdLMWNTcSzqygI3xvcjrYYwE2Keuk2hNDqOxObKItCbW/fLNAiUKXSDs3SAZi 4/bctvX03KrMw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PMD6p19RSz6tnx; Wed, 22 Feb 2023 12:13:37 +0100 (CET) In-Reply-To: <87r0ui3lvl.fsf@kuba-orlik.name> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256330 Archived-At: --=-=-= Content-Type: text/plain Kuba Orlik via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > When opening an org file and running imenu, the structure is not parsed > properly. I need to kill the buffer visiting the org file and find it > again. This only affects the first org file opened in a given Emacs > session. > > To reproduce: > ... Org activates Imenu support only after Imenu is loaded. Effective only in Org buffers opened after Imenu is enabled. I tried to clarify this in the manual. See the attached. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-manual.org-Clarify-that-Imenu-support-is-activat.patch >From cbab9ebf5521d327937e9e30e2de43b39c5dcdc5 Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Wed, 22 Feb 2023 14:11:11 +0300 Subject: [PATCH] org-manual.org: Clarify that Imenu support is activated in future Org buffers * doc/org-manual.org (Packages that Org cooperates with): Clarify that imenu should be loaded before Org mode is loaded in current buffer. Reported-by: Kuba Orlik Link: Emacs bug#61685 --- doc/org-manual.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/org-manual.org b/doc/org-manual.org index 5b6633417..6a625b42a 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -20327,6 +20327,10 @@ *** Packages that Org cooperates with By default the index is two levels deep---you can modify the depth using the option ~org-imenu-depth~. + Org activates Imenu support only in the buffers opened after loading + Imenu library. To enable Imenu support in an already opened Org + buffer, reload Org. + - =speedbar.el= by Eric\nbsp{}M.\nbsp{}Ludlam :: #+cindex: @file{speedbar.el} -- 2.39.1 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--