From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4LYpJgmWc2Wh9QAAauVa8A:P1 (envelope-from ) for ; Fri, 08 Dec 2023 23:17:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4LYpJgmWc2Wh9QAAauVa8A (envelope-from ) for ; Fri, 08 Dec 2023 23:17:45 +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 C5F65576BF for ; Fri, 8 Dec 2023 23:17:44 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gmaNqtgL; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702073864; 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=nvOCq/k9xQQHPvxxgWaVyhVKnBUBTTWNeki9vR7T9x0=; b=NtBvDQd2jvlPeLxy+foaQ1iMCwwTh5+8MCCQw2SL3MM8SdK6eX1JX3t8unyuMX7+k0Ie4c I5VGkBFE32mNINZLAeYql6COKJWaJI2Ol2XYO0nf1J01Bkdz9a1kUL2Ixmixm44lTCVjZb E5QZvWNaY+n5ePhK6MFdWNVu7fSVAJqPYyD5sys8FENgXaS071D+xYse7iLq0cQcLc2Lb2 pzqkJ3d+a47ksIrZB5EF+x34CG3o0bHk+9BDn7Nxw3d4vYztPB1obFL42hOp4uG5MIfdZb v79IWU8ubxuaYFkDb58Mn3rnuqGHFiHnvVLlTfX0LtzXOSmSthz9rNh0AmsGMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702073864; a=rsa-sha256; cv=none; b=YPYNaMl4AEzgS0mMU2XkaAPBkbgBvdIOaba35XBf5FcN64eOs7i7/YFmtXCS9bICVQAx58 +ilWOIUJEKnFpAjjsEbNJaCCHdHmSCYIp3UbmKRuHy6YqGMZYkC6i1IXzgimdXPT+rO2CH NlYlh4pX+oG9mCil/4rGMcDYsnxu8ylu1kXEth91cKsy0RAb3vStcYnivDma3tl5AIm71Q ztQMaZnOgStDhe4VDoRvXHxS359RgRsN8sSeYb7GOWPGGMBreBlZi2D5COwhZEagLqReg3 AS2ODqYBID+XsC3cKV11JjcLQoATnUOuXOyM7GDsUyxCsuKHh/dVcUYJH7B6aA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gmaNqtgL; 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=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBj9e-00028j-Oe; Fri, 08 Dec 2023 17:17:06 -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 1rBj9Y-00028C-6I for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 17:17:01 -0500 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 1rBj9W-0006a1-9b for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 17:16:59 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 11A29240027 for ; Fri, 8 Dec 2023 23:16:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702073816; bh=0KpPLCQNH8DYE3z3amcUvzbalWlMb2u9vHCZYuPdKQI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=gmaNqtgL+tJoAhSrMkuXUK5LHh7Y3SjTnG477BAkU0CBdsbVGDCMow8cBjtQHtMC3 P+0WfnXSD6/E1DhOZQwudRJUt0MITRW58qJJBoXcRKxj2bbKBPaXLBBtwRc83qz0UF lszNSzMJ6pozmbCKdtYr/t5X/qMxBt2MRW5628+9pWTOasIm84CfW+NmCwur0NVtph is6ZBwQ7GAMLAFSQsi1GnjcHXPCcQcLYaDEZ+MViT38d1vyepzDEzFH8bqQ2BwuUrb BVg7KguRUMjcyzvxmrLCp+u9sTqa/Ir9vrjr9to4JTbSEXLlWgBhpdlATk2KN2LiEP RNN+GdnoUK8Ig== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Sn58l4tZkz6txy; Fri, 8 Dec 2023 23:16:55 +0100 (CET) From: Ihor Radchenko To: Morgan Smith Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Add new option 'org-imenu-flatten' In-Reply-To: References: Date: Fri, 08 Dec 2023 22:19:58 +0000 Message-ID: <87plzgbalt.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: -2.31 X-Spam-Score: -2.31 X-Migadu-Queue-Id: C5F65576BF X-Migadu-Scanner: mx11.migadu.com X-TUID: 27CguNIEAJ0E 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at