From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 sA90DVnIc2UQFgAAauVa8A:P1 (envelope-from ) for ; Sat, 09 Dec 2023 02:52:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sA90DVnIc2UQFgAAauVa8A (envelope-from ) for ; Sat, 09 Dec 2023 02:52:25 +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 D6F1F265AC for ; Sat, 9 Dec 2023 02:52:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=ec+hNBhA; 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=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702086745; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GjsJwdyR9cgfgMiaYagCEW+yStlc4s4LmyvC7iWK8Pc=; b=G5HRZ+fX4Xd5JFZuBs5riZ1ZZaRZSDa3BtnJ57odoZtI4iTj8livI0gm35JPL/h/37F7xE hpPzWbxZGYjcC4tqYXv/aHhQAuviegXwuvuq6Ia3d5wd9sbtiVXMGyDnXRwuH8LBht4f/v zyVjTBu6Qd0Z5JPZlidJnq904xlm5ljbW1e7ccT8N7p4HVeXbcVdrPmlJTztDsNhTUluob 4T5sZ17nACLzQ3uu4T5xn8/ygjxu6vOYtyEIXzbj0eiOcvk94OSJK46JUk40n961mviDgy iLRwtQld+d5mhmmK+6pvyreCHEKH1sPEymKoKk17rz41oeo096SotT4cnGsDeA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1702086745; a=rsa-sha256; cv=pass; b=MOkeiH+qIEjUKJW1Hkq3v50vmVBvQDI7OcCThVggtscHbpJYVDWqsLbMF4mUaldIppORyT GmgQPmMdyqXvwieHqDut/ZHOS6QUeeAnCTbY+YDiSjXQBLSP3MIJ5EBURJvUcVDRxiFdS7 cbF9OgWDVETHCwjhjFomyKuneXndvAkTaKofQpg9s6c1jF+q0AYMHv8yjRliYt3PWFVZAg IeeZmwclCDX5H6LGw3zUHvZSFqXNjvp50K9sEh6FVzlbkhQep20viOhmJPTCLd95jKnalU Um23oWX3SFmOmzZf9WX+MDqjk4z6eKio5iJUKiCEs9k0JkeVbJc85upYjTXkhw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=ec+hNBhA; 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=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBmV3-0007G5-Ff; Fri, 08 Dec 2023 20:51:25 -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 1rBmV1-0007Fm-3r for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 20:51:23 -0500 Received: from mail-dm3nam02olkn20821.outbound.protection.outlook.com ([2a01:111:f400:7e83::821] helo=NAM02-DM3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBmUz-0008UU-I2 for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 20:51:22 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IgFZ6N9FaWo94PKLQgvjvrdLIEiU3eCtrrxGZBLxygv8nTlBRh3JdV/NSZsLxSI0oIUWLRdWNkvH3XF0hGzrq8Lcim1tJA2AkCLT0z5aZcPZnFT9RQXQYmDRQkNILiG7aQtbtjpXns6UH/C857X04fb+hOgdxs/bLrbQVlltdWO3inR2XZLKU3aWoroRFNVOBRhMohgkwt0Xn8K5MkG4tbsEZzgQaqYUP4+/AYfZc/5tKpNY8HKDzeZbqcJpoT+7Yzrz5nxr9a6GV1BH2/IYntwr6ciC00AWQN/wHN08lLwCAmHqrhFpHNTMM1eka0XCXL6s0e0Ve5GI0ihlZ+j9uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GjsJwdyR9cgfgMiaYagCEW+yStlc4s4LmyvC7iWK8Pc=; b=XdNxl4qwGG4CKXulNw2QSnIXj1ENCkgB4fzanTMaT8jowzQUaVGv6skGlkMsLH0OLmWUt7hrkapex/9dmy7/JHbMwMPYI7MxZdzKLJnUWNrmljYVqgaGbr9d/BZWJ4m2+dMofjUlBXuYjLTfh2AnAcGBG4SYZojZyS8MRosVFcObv8cNwtSxAU8TwnyTJp9O4LUqVhnEAeHn0rin02vqJ8jYp3W4rRDnn3WfmGeKGAQECk8Kb9plHJU6Gs9303/GixCtWk4D/zuVdCzYkRcMZEdOQ84yGD/FwPpBfV6mpaQUD8oywRh89kskUVRJs6k1pkfQYrK8hQjHpdKfCt/zhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GjsJwdyR9cgfgMiaYagCEW+yStlc4s4LmyvC7iWK8Pc=; b=ec+hNBhAm4iBNH1liTHD/bsguGmFOU7Fq1bY6V+tJfS4tEdLw4mrB+AF/kYZ8bK/x6bhdaqo/i/QB0lGj9GxiJfA8nyiYQD54ib/eIB+XPqTQisEnYNI7cY+wXomCyV6HZ+zAeY3bsrXLiIIh2kjw3a/qllrtj1b3ATF/iMMVMPtKnNBJjOd4Qx3IEJxqb8U9w8QMgxs3RJYdpmdbMl1d+Rtla2CZoxq0d2ZhMBfLtND/WwHKlXcAQVuPrF8bWeBwws0jtW0bqjw8xThVQpLcuUEhHzrm+An1gMTphcXkzS8BrS6fbTBBULNM2hPBrEDxPeKDk+2hC+TiWcwUD7CPA== Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) by DS0PR84MB3419.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:8:1b4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.28; Sat, 9 Dec 2023 01:46:15 +0000 Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::d3da:3eb4:4e7d:440c]) by CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::d3da:3eb4:4e7d:440c%5]) with mapi id 15.20.7068.028; Sat, 9 Dec 2023 01:46:15 +0000 From: Morgan Smith To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Add new option 'org-imenu-flatten' In-Reply-To: <87plzgbalt.fsf@localhost> (Ihor Radchenko's message of "Fri, 08 Dec 2023 22:19:58 +0000") References: <87plzgbalt.fsf@localhost> X-Hashcash: 1:20:231209:yantar92@posteo.net::zUwJV3I3bqMk1CXX:k0X X-Hashcash: 1:20:231209:emacs-orgmode@gnu.org::c5pxmoWcKlemjVco:0jqv Date: Fri, 08 Dec 2023 20:46:18 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Content-Type: text/plain X-TMN: [MDQVud/k697QKm9IlKOWMdWAmUUaF1tjwcm3yji5mXrz/1LKdqniWA==] X-ClientProxiedBy: YQBPR01CA0086.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:3::22) To CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) X-Microsoft-Original-Message-ID: <87a5qk87x1.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR84MB3424:EE_|DS0PR84MB3419:EE_ X-MS-Office365-Filtering-Correlation-Id: 03b71bd0-c5e2-406a-25e5-08dbf858a168 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZYWNwaoBEqu3vFZAH/PbZPkcE0K/YRVRYJ2kwp6h0qXWLqmmzrqdnq9t7QuG+afMaVDFlCKKs8d6DPbg5t7jqXkrFyzZjfiRLfqEoFOcBgao4GeSLIP047HOMKLu4gqC4KgdxcP6tgleKRC0YgLFU9CTF6xqwcPkwK9Rr4nfdJRAl8vGL+G/W3CsTxOnf8FBZXT6iirXwD+D1SYmV+KW1erNFdKwdvqpvIlLzJzL4w4hh+fEICPO+j30YB6x7AohQpHFmmSHRuFQcLm0F79QjnMjTa1t8BdQ5C528POm1UnCfy8xVXEVrsz0miylgMYULCPb4kKEPD5Rs/1HVDfObEJEAi+ETdBYNmZtrb01CN2mDMJyO3sjis+qG3EPQ3YPH99xuc10oeT6JorX+og2v+ICKmLPbBOla4TVMkQ6U9G0bwn4hxaeY7f1xA9knr5fPYpHQNdT5Sn06ygTPJQKHButMnAjWs/TxNiCvnI/BRFpyUHzxuls8f9wykmOzVIX4yB0KXpiwQNgH73pPsxSt/vFwAUSIRZSmKg/PRBjMeheoqwiHsrf2ouAyB1ItRzA X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7ahWx6I8K+HS3WSOECOau5UEVcbwzClFMNXT56j3hSTwq3IzSgTPz+1bihrR?= =?us-ascii?Q?0MKmeI+YDOS/caq0GaPmlOD8oexPMQj59C3UOPTur2nUdOaOA5RQ3ic74c+D?= =?us-ascii?Q?fIzvJtDSqG8UQ6KphFykFc792xMG1n5t4mlcaJYFcPUDIy/ljiH4kmNcEUkp?= =?us-ascii?Q?V5S5XSMilXvLYNgtIqAnJsbG3HP/FK5n1AJgQpS2d9KgtMCTNpYTxsfCEB0E?= =?us-ascii?Q?Xn7a0//38crocZd7xCK/vFwIWGM+w9M6q6mMq4DD72DM3DRueUgO3H67ULZh?= =?us-ascii?Q?yziY0bKRxMdQ5SoWvon79r5CEEpQmx3le09xS4BMIVSCus6y72ucfGWwpjqq?= =?us-ascii?Q?bxChSeO56poY+8RiS6SY02UoF7lEx0fuKqnejkFkwy41dF50RNUWoSO26giP?= =?us-ascii?Q?Iv1MqBaSq1q23BFTOSD4e5R/PxkUmniG6dTgcWOYNTStUSrt8dFciNPzNKCf?= =?us-ascii?Q?U8pwdjggpsaQUTowPrlVmML2/2RsCvpw8bf0eNeKQSzcp0F+9HUt6OnTkkn/?= =?us-ascii?Q?HgDLmNjGyVEW1T0uV1F5FNLKHdwn0/LFa/38YhhtGtEKWJeR0+rx3x7tL+zP?= =?us-ascii?Q?SmIwVkE1FepZoI0fujE4PDK1cUFONGRgPrd/4VXSdb51aVH7ke034Is3TM6x?= =?us-ascii?Q?76aE3nIqR3JMNGP2G0lew+VnyBk5nDZ6QtTVOqgxqm5Nm7ibjoiJc4Sa2VHf?= =?us-ascii?Q?JWbaX3m/s6Omtdh1q0J1tKLFfgVR9lbB9DmtL1VcRAGn99I0tN4TdYF4X7Zk?= =?us-ascii?Q?gQgfc88Ll5vUKy+5ekEFp4Zoq1sYbNc32vV1BrzLktIR0E49LLdZMBX6fT3o?= =?us-ascii?Q?2iyCK1NttgCqlksGkcNDkGhCaLLwuiLEqj+FkryDCZlnrulTqYAJB3iyddOK?= =?us-ascii?Q?Dp2D0fTDoGnuDGrjA1AQGPhATWTVmq2h8t+rqzFTscv+k15b+dgOxG8B9XHk?= =?us-ascii?Q?pB9sl97Le5li6oVXpNgPar5gJJ4TZQoKXhRjbg+hEZepzVt3JWTNL8Byt/wa?= =?us-ascii?Q?+l4dm295ndpnd4UA7OHijomjJFDav92rFQHF0pj4jotWmkfNrIkEcRMrx/ec?= =?us-ascii?Q?NchkKJ5I8m6hQ2LfCpBPHWKm7CaexncT6426k1FZ0P+zocFoM86Yamx20r7l?= =?us-ascii?Q?1uaLxH4sFrOtRIDwTPmmRxPCrbfy1E8IAEUXsT7o7e0prsTab9nZhygmSYrB?= =?us-ascii?Q?hyr8jxZZPLjKZ/IdoQiduYbV4G/xtTSd7lGadyhD7NDQieDcczSLyhHCd77r?= =?us-ascii?Q?QsXRXM05Nzdk8G+Qix6MRlnNs31cbuulYuJ1yehmSg=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 03b71bd0-c5e2-406a-25e5-08dbf858a168 X-MS-Exchange-CrossTenant-AuthSource: CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2023 01:46:15.3887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR84MB3419 Received-SPF: pass client-ip=2a01:111:f400:7e83::821; envelope-from=Morgan.J.Smith@outlook.com; helo=NAM02-DM3-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: -7.42 X-Spam-Score: -7.42 X-Migadu-Queue-Id: D6F1F265AC X-Migadu-Scanner: mx12.migadu.com X-TUID: aKeIezBgQ1n4 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.