From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aLptKWOObGbCgwEAe85BDQ:P1 (envelope-from ) for ; Fri, 14 Jun 2024 18:39:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aLptKWOObGbCgwEAe85BDQ (envelope-from ) for ; Fri, 14 Jun 2024 20:39:31 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="LoGPyOQ/"; 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=1718390371; 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=klrcTPKcEqNKK8nxzD/k9b39b2zE0eW9rCdVfrq4klc=; b=khDPTAGbkpsX3fFNWC6gkM8wbQPehPP6CKo4x2l5j4EPCFYlRlx4t2ZhTek3Lh/vtgPceE Q+XALAMIeZHtDP+3Ri+omePq5aYjzPhJ/YnfalESU9Utxdb5g1IsxvUi5yOemqsc1+zCua KBI4NaxrTMdezWNLIMgBZfaWaB+d+Ubs57MXRRkgDlJl6l+kP97AAnnTlsFj+7gj5nXdPL zWhW3jWMD8x3w/TWTyyDbK4xMpbT55wDPbEqVhQtvBnQtv8si5pn+YUXDwixgk2Qkw0zKy KwyaFIrw3z5EQ64HvRBjGssSK7I/iuOiuGVIvuhOdBZKGheJ2Ai0W+UmFwO3MA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="LoGPyOQ/"; 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-Seal: i=2; s=key1; d=yhetil.org; t=1718390371; a=rsa-sha256; cv=pass; b=rGGDCOQWQ0R64pUDJagEkI+d7d7gSuZX5iORYdDlY3L4h1U9itmIfUT1bsaebV+oL8k1if 1JvGb5qCICj77vdFS8sPMZl592n8m6vDq9lMDsouQeWhEdDRlkqSqxD+v2FTlPBBjGB4Q/ loXCajA9hSQR99GbfOAWPAwhccWXgpOH6GzkFvs7i6dVSkljwyGdtd42gsWrOAGIlwk0TI fscZ5HfS+Qyp53N23frcv2JNGF29+JphGGGufztY8/hxwmT/adHSYyDDl/oOIGzZcwqgaQ SPcv/Jcm/5sfmY+umIubCWk3zKse6yxL/kNsV5ADMB5EfTpMT/ZE8OgiEYhgOA== 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 4352F6EEAD for ; Fri, 14 Jun 2024 20:39:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIBp2-0006g6-Qo; Fri, 14 Jun 2024 14:38:48 -0400 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 1sIBp1-0006fp-5h for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 14:38:47 -0400 Received: from mail-co1nam11olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2c16::801] helo=NAM11-CO1-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 1sIBoz-0001bl-Ex for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 14:38:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mN9pq/MRwRgMDZ6MKpz9+aw+1WHhVghzG/G5THg7GAc/uts42AAHvZOHu0NJf6ufr4HLp/cvF2O+3/Gw9fpRFxhLc23NhKX8AgFAPl/+BtO29qQoTKCTxlswIc8uY++8Iie3OCuJdM2Gap38sZoyGoKEAFTeXm6h9qWVyr75DRyj9bqcaa+jIb4mVbEKITVCiVQqNC0q6eqFfMtTH9HDlN4eEGj3T0ePkokPmZ6OyvCGIYQ2RoGD9ZO6nNunidH/+i2Qg9wYRZlyt9bUIhQM4GKlcKWRrXv233g1DENTnQn+ZGuinSRCH+ineyXTIhvXAnIXOUfog8UmezEm8/yIuw== 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=klrcTPKcEqNKK8nxzD/k9b39b2zE0eW9rCdVfrq4klc=; b=RwmLlAXiwmXobcN6uUV1t1SZ4Y7wz9qiMzPKLtwN9uH08bTr3RsUkCQjq+UFxezQOy0muYFx+pFrBLmv77CZPT9Fci8jMXC8qbEmKECdMR4GiU4MLGHEXVJpopMpkSae0dUGLi7y2McFwK2dZtjMEXFhudi7R3wiqhRN23kUlKn0kAYz8VAL6LP6ZxqxHx/GtqhXAUt2r7KKrS54F+ApDLEPZLjAyA2rH+kKomK7e0Gx82PJeOUmFWoFaalbLEmnkOLeyDF9CvD0MVCdJ0QNg3uvnD23Df0Zt8U3ELvHuwb6yXhmU9Ax0lR3iVdS7UzXYH9NOlZaFDfvkuky6zmhMw== 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=klrcTPKcEqNKK8nxzD/k9b39b2zE0eW9rCdVfrq4klc=; b=LoGPyOQ/J6+wXKJdvDsDKF8Ge13EXy1hXyrSa6ZBdfwqykvWsENLD18X2P9Z/Bau4mHSxIwEnvoaGbK73aBndlRRsYNGGt9Z8cU5SPfUwGusKkxIEZUPDL0i1vcWkb4wt3m+l2buVoFD2D4UGwyLYu/o/q0m87YTyfzzlx7iUq1JbE4Kp+JhPrkn+yZAWbRF7ARIdiL9ZSOi3zDL2szb4UHR2CRgFS5BlBAcJFC1Z/1hMIfvSBuPRA+zlAkckCa32Mg68govPtQBBu8/VQN5PTmk4PvqnI1eQdBJPwI9uwKnPupbdheF1PQyiwS+XCsZ4U8POj3NMNxIr+nbCIEmHg== Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) by LV8PR84MB3855.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:408:229::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Fri, 14 Jun 2024 18:38:40 +0000 Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::5c77:7a58:48ed:9aef]) by CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::5c77:7a58:48ed:9aef%3]) with mapi id 15.20.7677.024; Fri, 14 Jun 2024 18:38:40 +0000 From: Morgan Smith To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines In-Reply-To: <87y177ikw2.fsf@localhost> (Ihor Radchenko's message of "Fri, 14 Jun 2024 15:50:21 +0000") References: <87y177ikw2.fsf@localhost> X-Hashcash: 1:20:240614:yantar92@posteo.net::TQbKTc1SPRMzFPHq:1Dw9 X-Hashcash: 1:20:240614:emacs-orgmode@gnu.org::Ti3wu0TJDZFYdIVK:A0f9 Date: Fri, 14 Jun 2024 14:38:33 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Content-Type: text/plain X-TMN: [m6M+7PxDj66xlLCejjxTPnFkBDuPhoG3H9dLYA0EWYtCeuQ70qSjyg==] X-ClientProxiedBy: YQBPR01CA0049.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:2::21) To CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) X-Microsoft-Original-Message-ID: <87v82b2wuu.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR84MB3424:EE_|LV8PR84MB3855:EE_ X-MS-Office365-Filtering-Correlation-Id: e27e1539-62ac-41c0-4c4e-08dc8ca135e2 X-MS-Exchange-SLBlob-MailProps: WaIXnCbdHrOYPdEAwhZn0zPR6I9g/xN2kRLPB4ZuS144Y3sXPP3fYoR1/eEeTCQWQxcMbKIO7D5YpsegoC2EdAqWfttON10uWPYTtTZ4lG+Mfov7SKVFFVwZ5BX4ztAI3pN4ChoQC8E1jiKHRb4F4YhJF7MMsQMMEw6bNH8Qk5qCYOxpdnOVDKO3sJiLgnSvLBM0Eb0ha+ne0mNMTvVerb7HRM4JQ7I/rivznHAKAu6lXDZlhCcC8HuJxz4IbSDz7XCpudPkyVeJ8uW+GO7R9P+BRj4vH3rFHirn4VPNCoY+KntKf9yjdcLPdFIAaXfABwy6BtkHIbSGORjQ4krLUX1RSffmYui0KIdtz5lmcWh7SDNV5bJN9plf0JRpSwOQbgVjwVCc+pNa1pvJxBh/eKyrTUBkgX31ahH/BX9KSGZF27+mvLBozU3S09LV6SsTGpadWZ2yQd07B/qMK3Pq4CuwcuJeY4YeLy3mYrhXLc0TSpTFA9O2m6k+3dQNaSqKqc/UHwOfDOh/MVZql/cOXx4on+7AM5RkgOZHsegV74MVNOJdgD4XORdE6Oh70q929SYcHyVXmIUESLDE2FYxx/Fld+0FFpcyfXqHm2wbwEmyM1J3LhUR9q5WOogRwIgOYgA2lHSRt8v++HKAcM/Ut58uqQhIl/sguMWBL4mjpaleYzakzae1AN2giPRP1QP/9fIfVaTxTotMicqga7O1eYDeyU5RbPvBf8iKo9NswV6J0ttytpyE9D/9br4u3FZj6Q/AAfQT9nM= X-Microsoft-Antispam: BCL:0;ARA:14566002|461199025|3412199022|440099025; X-Microsoft-Antispam-Message-Info: ao5yVhHEd4J0dNdMMYGuVUWVHsZFqeHjkpMx5WodDD4cP6X6xpQsR4pmWYJLEIHjc0VDN/TcTP5NTy70unh42Pb+moOdzjz4IokmCgHOtWd2rDFB8UtogfhfcskgwMqAU2/YOw+BPFQJMNj21dt0fJoL5zPTzuKVoINVMTS8n5JnA8YQSSzKUVKnxTbu9faamB61dhajZ5gsmPnNEdXcq9U7cy+Prg97AkvFjk4OLqmkz3T/AS63dlszoOrPuWrisdFGe0RSnE/l6x4/A16ayzzeTpYAy+NxdUaclEPgId1xFXzKxFBWjZ3I9FDFdfFdEMGKbZh6OEn22xrjsPG6x0x/04qizQ2hIaXSchw6Vd3FXsmrmbk+hQLWxyeKw85pxSX+DqzFQ/sU+oIu584G0ioYRaZBZzfqkmwvNCXjwJMBL96O7KXU/5Y/RfayG8Pr085inRUpj11juFaVsc4PPNesVVYLtdkXH4uELwZUFac4BfNSmD6LakF4W5TClNNz2cPkw2xVGinWcJYvggC7rbV6sojSOBPUV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E1GWbZIkbl0+Ld8KvLHsgxFgZrbZDIoFMrjV/j5epfCXtPrhtS01eC?= =?us-ascii?Q?huxk25UtonTLffjdDpfKl1u6LK72yXfd/c5c/9BC3ATJCoOE1PuBdj+omS29?= =?us-ascii?Q?pihVz49VpqV1NVBoV6uMkxDXWVH/vbVQ2LmPSRLUjiyJkfRfBUIIyGH6O6kr?= =?us-ascii?Q?POxdD3WK5DRE1JGu33fnrzvdDxna1iD6fU3qU5yxErIXnzs6e3M4n9jgYGbL?= =?us-ascii?Q?bIH4YkbUuY4hCgTjjc8K4F7FYzRuJJx1sBaWTm4Oq9cVAadmLYNziDWhitJb?= =?us-ascii?Q?LyRjbo5mU1SLMpgnL7GUmgfd8svx+bgtmizTpyqxqQdvDan7YJGuuXgEiN13?= =?us-ascii?Q?2QDo5AaU1LZr0TJ6Y663vc840ofqBmR+VmASOx1drEbLQweIesaUKpEuGK3y?= =?us-ascii?Q?vjvFNu9AKMqe/kutV6RvHRV0Gq7+Rt00QZAInAHegYwpbjIASSHHUZK3xtR+?= =?us-ascii?Q?jpVyvDMGFwg8w/IVDx+iTXEpRQEGZfrVMZNSiyPxnw=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e27e1539-62ac-41c0-4c4e-08dc8ca135e2 X-MS-Exchange-CrossTenant-AuthSource: CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 18:38:40.3334 (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: LV8PR84MB3855 Received-SPF: pass client-ip=2a01:111:f403:2c16::801; envelope-from=morgan.j.smith@outlook.com; helo=NAM11-CO1-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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.98 X-Migadu-Queue-Id: 4352F6EEAD X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.98 X-TUID: 3bdRfthUw/D2 Ihor Radchenko writes: > Morgan Smith writes: > >> Quirks: >> >> With the default `imenu-flatten' value of nil, it is still impossible >> to visit non-leaf headlines and no change is perceived. > > But no regressions, right? Especially in older Emacs versions with > `imenu-flatten' not yet available. > No regressions that I can tell from my testing. Both emacs 29.3 (before imenu-flatten) and emacs-master show no change whatsoever (from what I can tell) when imenu-flatten is nil. >> Setting `imenu-flatten' to 'group works as expected with the quirk >> that top level headlines don't end up in the group. > > We may add a top-level group, can't we? > This does not seem to be a feature. You can confirm this yourself by reading the comment in `imenu--flatten-index-alist' that says "PREFIX is for internal use only". > We may also consider changing the default value of `imenu-flatten' in > Org buffers to non-nil. In my opinion this is not a good idea. While the UI of imenu is better when `imenu-flatten' is set, that's not a decision we should make for users. The inability for imenu to visit non-leaf nodes with the default UI is probably something that should be fixed in emacs core. > But what would be the best default? IMO that would be 'prefix. Which is equivalent to setting it to `t'.