From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id MLKZCyk9P2b5kwAAe85BDQ:P1 (envelope-from ) for ; Sat, 11 May 2024 11:40:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MLKZCyk9P2b5kwAAe85BDQ (envelope-from ) for ; Sat, 11 May 2024 11:40:57 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="KFV2hOd/"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715420457; a=rsa-sha256; cv=none; b=V3eh+WQwDg8z+Bds5Wu36E7qAOzp67Jg+qPGOUqxTl/s0J/goSazegF1KFdhPzV+ish0FM ixk8WZ/hc8E/JVXD4bjQbSe3PsFKWqYcTrt5AQAnSbed/JQhnJYpfl0+186wECySf43APo f5N+UzaD8px8V9/PXkmutHRoXNzpasoyMP0iCRP0IoBMsUfJYMvgp4kR4N4FpGWGbJCu0Y P3vHNarp1vMwqFvWJ0W7ZYUTefh/lNGjIavzZqVvBOrIV12ecZuPl3U6tYyTrG7vCPmO70 0MuzKk/lxpGJvnD0H/N2ADZcPzifFVsMzUjYVYAbg7mV9z+IsRVUxFNthmStfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="KFV2hOd/"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715420457; 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=2TTepkm4s/b7cTbpABuwodAfEEjvsEnXqiSrpfJzRSA=; b=GCt0uz8nAu0yDFDabjVzaXZ3YA8O3PxmCcPjVw/fTjYFSDu/hJbow+0bngsw/aMvRtjmZ6 0Smqlbyx/fe0ATW97vDwipJZYoXhH6gW37pSJQP5CxFzcP8sBbwvUSMs7GlT8TsXlv6V/m yiG3oDbm2pQAZh+9lXqTxd53iW3LYm9r8a8HFC3hyAyPCqJ+wz/L/TDrmvnCpgyYNUspUO pVSOor40FE0dZZYV72AHBmCQgiH2T5PfHL0rwnZC0oCLu3/pAtovSAQHRlJlU5KdoiMtno ZB0+ozSSBY4s6G18E7mD3iRraz0+zNngQt7XPadLnwrReKXTLOD8KDL0TkF2dA== 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 D1F3364088 for ; Sat, 11 May 2024 11:40:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5jDU-0005Vd-Qu; Sat, 11 May 2024 05:40:32 -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 1s5jDT-0005VI-Hw for emacs-orgmode@gnu.org; Sat, 11 May 2024 05:40:31 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5jDR-0003A9-RL for emacs-orgmode@gnu.org; Sat, 11 May 2024 05:40:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E6AFB240027 for ; Sat, 11 May 2024 11:40:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715420427; bh=8rznxFIeK9R5L6pw7GhV9bu3Ij+gcbbbm+oWW+CI52o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KFV2hOd/6RjnBBnmRk615XLNDLn4aAiZP5SXqe6ln9FcotL5+LQ/W09DhBrcrOwWP 0gEPocl7EfJ8cnde+yTbnTBRP2iS1ybqP8y6y8RVaCJ7m0uvUcfyZfLueYmAxnNRlm +EfuzREvBa55jLdEak+24iAwI36Gz+I1LLxKI39ICvfRHYNunw7fqTlocir/v/cZww x0Iot6pmlHTzFk2BjHev2W9lG/ESVa/JGxR35nlshe2yeOVPgpjYWB55gNbBuJuzNU uUOSgL6NZ2HnfSc6FK6RzsDPbpIiD8CxkmllSGfck8QmDnK/bMrBsiKoIMIHASzzSt gzj/sI9D5dbSA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Vc12L55gDz9rxD; Sat, 11 May 2024 11:40:26 +0200 (CEST) From: Ihor Radchenko To: Morgan Smith Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Add new option 'org-imenu-flatten' In-Reply-To: <87plzgbalt.fsf@localhost> References: <87plzgbalt.fsf@localhost> Date: Sat, 11 May 2024 09:41:58 +0000 Message-ID: <87le4gvg61.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Migadu-Queue-Id: D1F3364088 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.35 X-Spam-Score: -9.35 X-TUID: By7wWY53PHcB Ihor Radchenko writes: > Morgan Smith writes: > >> * lisp/org/org-compat.el: Add definition of 'org-imenu-flatten'. >> (org-imenu-get-tree): Use 'org-imenu-flatten'. >> --- >> >> Hello! >> >> I've been using this patch for a bit and I quite like it. One would think >> there would be an option in imenu itself to flatten trees but that does not >> seem to be the case. I copied the defcustom from 'doc-view-imenu-flatten'. > > 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. Built-in imenu in Emacs 30 will have a new `imenu-flatten' option. https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=4306aba2d0447fd79c0b749a984ccd7bdbc92361 So, we do not need a dedicated toggle on Org mode side. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at