From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GIiHMrJPdGUcIAEA9RJhRA:P1 (envelope-from ) for ; Sat, 09 Dec 2023 12:29:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GIiHMrJPdGUcIAEA9RJhRA (envelope-from ) for ; Sat, 09 Dec 2023 12:29:54 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8FC90167D8 for ; Sat, 9 Dec 2023 12:29:54 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="G/KsRGl5"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702121394; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mJfhBHdBwcQx7/mGg0fvLnra7rtIFWHasUVCVjfHiZI=; b=cv3+nmraxdhnKR1BvkOLM/FJ4iCylaw3W1kQTqTkOr7i9fgkC+jbWCNKNZX9Tyq56G/0c/ BL5KskDeQveAiWoN1StJ3A19HhdGrZGGVTglWfF3K2+AO7YVdFDK+KyzWPhQujQ/Ugqs5/ PeWRMcDvznNWz5BBsDXjA6IBqOPLa7H6YeQWlbExwJdOhWwwp9JMNUTGp0klUxvpUGILSM zofiYBiTrdUSlQuo1ECxei2icAewvNWlXAp21YgHbiu6bDH3k+3P0aExez47w/qk3oBCfC 91H/ZkQ5eMCir/8Sx2QqYuCWS1SFGpsgxLXlrYrE6lw+GdpOl4Sy3WLzcDwnAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702121394; a=rsa-sha256; cv=none; b=ulejoBkPQtZCdNCltKVcbtJ0IVUD580B8Y9ujYQSeq5vazWKKyQ98LwGOcbu7UbPIMpmxE 9KM/rolgsCCIGhGEfo9m/Fk+LiaA9pZaK8/ofZvSBSI0wj6/CYXA/xxfvAGXUT30W30Xhe KAklf6JaHgOKiPFcmDEhXaZ+yE8yLhCsPQaCeU/lifdAzGhjhnVlfucPGJ5ydO/MkjCf7u RVVtdLlE37hKfgGxkg8VuR+lKddsN2F63q4tbr9nT2ANoO0UhUs2Whk7iAfbR9JxdnFfPZ xJQGYrwf+pGv+kJtv6rI2tJyI3fWJprd2nyryXaTFhSogo4blkaiXzVJ7ZXmZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="G/KsRGl5"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBvW3-0000ve-AZ; Sat, 09 Dec 2023 06:29:03 -0500 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 1rBvVz-0000v2-TQ; Sat, 09 Dec 2023 06:29:00 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBvVz-0001Lh-9i; Sat, 09 Dec 2023 06:28:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mJfhBHdBwcQx7/mGg0fvLnra7rtIFWHasUVCVjfHiZI=; b=G/KsRGl55dcw KmKcNB7pqeS/EvT5DqlFcX0AREk9tgJxJoU2h3PNpQax2zsTBa227+6utuuQ+A5kh2FWG/vigpV99 hvsz1cBiFG4KjoiRDTAlFEHmv3eTsrs7L3Wejmq8ECW2lz8gb16gtIwAN0Sdg611EG1jZdnvVvMEm ROlcCoVoLb5lpoE+8c84rppuJMRRgjiPYgw5S3sM9AMIMtduU6a6RBJZEppXtI3KzVd5XbBR4yekn G/UIWVAlPJP8uESF/yx/or99EZKk74iiyiN5pnSqIviIJZZaeUkfhijSM/ai+JhwKG2cUIC1DMBkb K6XgU3WYdXdkXf8UMxRsZg==; Date: Sat, 09 Dec 2023 13:28:41 +0200 Message-Id: <835y17y5qu.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko Cc: Morgan.J.Smith@outlook.com, emacs-orgmode@gnu.org, 58131@debbugs.gnu.org, emacs-devel@gnu.org In-Reply-To: <87msujskxg.fsf@localhost> (message from Ihor Radchenko on Sat, 09 Dec 2023 10:57:15 +0000) Subject: Re: [FR] Allow flattened imenu index (was: [PATCH] Add new option 'org-imenu-flatten') References: <87plzgbalt.fsf@localhost> <87msujskxg.fsf@localhost> X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.89 X-Spam-Score: -9.89 X-Migadu-Queue-Id: 8FC90167D8 X-Migadu-Scanner: mx12.migadu.com X-TUID: oaDTbD7WA39f > From: Ihor Radchenko > Cc: emacs-orgmode@gnu.org, 58131@debbugs.gnu.org, emacs-devel@gnu.org > Date: Sat, 09 Dec 2023 10:57:15 +0000 > > Morgan Smith writes: > > > Ihor Radchenko writes: > > > >> Have you considered adding a "flatten" option to imenu itself? > >> That way, you could automatically get the functionality for free > >> everywhere, not just in Org mode. > > > > I have considered that but gave up with minimal investigation because it > > seemed harder then this solution. It's possible imenu did actually have > > this functionality sometime before 1998 (see commit > > fe2908be7b09f4c765ebdaf16fe07b0a77f78ba8). > > > > The doc-view imenu-flatten stuff was added 2022-09-28 (see commit > > fe002cc8ce38efb256a2a60660ee626c2b2cdf81). This makes me feel like > > maybe that person thought adding it to imenu directly would be hard. > > > > I might at some point investigate doing that but likely not soon. Also > > if that feature was ever added, it would still be compatible with the > > patch I sent. For those reasons, I advocate my patch should still be > > applied even though it is clear that it is a sub-optimal solution. > > I'd prefer to ask Emacs upstream first. > > We are discussing adding a new feature to Org imenu - an option to > flatten the menu, so that all the nested index entries are displayed at > top level. > > This feature is also present in doc-view via `doc-view-imenu-flatten', > and in python.el via `python-imenu-create-flat-index' > > I am wondering if it makes more sense to add this "flatten" option > globally into imenu instead. I'm not sure I understand what you are asking. As we don't seem to have an active maintainer of imenu on board, more details are needed to understand the request. Of course, patches are even more welcome. Also, should this be a new bug report? the one mentioned in the CC is already closed and archived. Thanks.