From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id g1Q1MxCdd2XCpQAAkFu2QA (envelope-from ) for ; Tue, 12 Dec 2023 00:36:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id OEc3KxCdd2VleAAA62LTzQ (envelope-from ) for ; Tue, 12 Dec 2023 00:36:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Be8PaK1T; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702337808; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PvQDsDXtRMmKHLAx+u/5jJBvwtAvtNbVe1G2Uub8b8Y=; b=Xqk0dKYTZsdN4A8Tfh/Rn/VF1rKdDfsyHNIsMhUa+11hn5b6Gprcct7b/s+m2loG/0WEjA thPLKjZ9pKWPgY3PrZteokIuOdbvKGntb/0wuQQQW22D7jPAJxGqtU4+js/sRDZdR6+ipG +JMmnKUG7YjH+knuCriGFM957BophlwB/FDSCiXpDI+aVD0b75eS3vc2L+5b9tY9SAe0/p V173Mth2QVWanLUOiV+QxEZy88royqUl4npKOd6gu48sktZE5MHyUBw/AnmbNUXNtXOswJ GYsuT9+XBic3VIQkd9L/o4U2QcOAdwDzJTugtE2f22lIwOexKpwXVURn1Ia0mw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Be8PaK1T; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702337808; a=rsa-sha256; cv=none; b=dcyI2BIspY7dOuOsXNH+v71vLOQaBD70cxmVxh7xAE7Iw0RqXDjUgV2HczyiWOjBkafqRl L5aWbELieFf8DH5J8VieqEfxwp++pHgbr+z1B5SLnq7I1Znr583yfk3IgXo/NYBDiAdywX lCgFVCsoj9XkaOU0cEJHmdmEfLS04dkS7Yucn5Q0JLuDi7Ms35OO92IXbnS1ZY3IRlXZxM sOmkpwNHghYnxms3Q3PQQmq9LrcFISaWbs+MGkEOJ1lYgAIBLEPTdv6N+ny7Ud82E5j1+y /NkXEByiMkJ5Pbqa2E0ylcV+OUYeMFdHJOC7Z+9ItBAYWvMNXD4w6d3aJcWCQw== 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 DADF9593DC for ; Tue, 12 Dec 2023 00:36:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCpoR-0004n5-NM; Mon, 11 Dec 2023 18:35:47 -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 1rCpoK-0004lX-8S; Mon, 11 Dec 2023 18:35:41 -0500 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCpoG-0002oN-SZ; Mon, 11 Dec 2023 18:35:38 -0500 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50be24167efso5821226e87.3; Mon, 11 Dec 2023 15:35:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702337731; x=1702942531; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PvQDsDXtRMmKHLAx+u/5jJBvwtAvtNbVe1G2Uub8b8Y=; b=Be8PaK1T26j/ldOvyNYC9zq77yPLSyTd92O8kYQFww3cxREOnqcNhigLXchaREsWk7 aWqrT+npYC55ekbaO5VQNzMKZOvd1ry5psTnxVMAENx4UQWzf8snXr8jzlvZehLCtspA VLDWBtH3VXwVPHpMg6YrpU6bEnRewdFWVDxcTWkBkZPOUt46mAf2kyI9X0wePZw18hc/ L0qq0XTUHT7Oi90+873vFZYdeitExPQVIWli1EBu7jM4N5bJpJi1xDtJmHsaMarvq+iX oqQN7NIq4/ueR6ZfpZmjKt/Js47vqZFXMztj9O8pHOmP+KXyk4hZDhgJNxXv0CKw9QaD G52A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702337731; x=1702942531; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PvQDsDXtRMmKHLAx+u/5jJBvwtAvtNbVe1G2Uub8b8Y=; b=l5VtCqJzNC3yitDe5nZg8I9GSPXBemh14t7grn8jpPbwPwAzjJrxSntEaQyPwCN52s MBGQQIzaXQzkRRj8O5v+MwjKNgAK/oaMOIks4m1/JYv6iTb5gOdq0tmwGxN3pTppSc8K mz9QGLnyfLzfxeUHS6K+LKOSSDsbsqwnP4yKL1+n1BQNbkEvxRwFbnR9KFF/BIPDhoED 4Nrvu34/ebvb5FD2MLlDgQQ93DGyiZO4CE9TShCS6WuHjh+U0lp30fmBh+CxL1qCuhvJ xdZkHE7aUoRz7Vekx7NN21de6rury1XNRirKuzGtRm9ny1uswov1RTybj7UprPz/Y6aE 6jVA== X-Gm-Message-State: AOJu0YwptdfqbRIRTyn9kq2f1GOUvF4D4CVDpF0+uh3eX9Wumvr6PpZ7 JnIFsd2kDkSWIRFYFS2jaK7iM1Qt1kidblaUPKkJspqfLMg= X-Google-Smtp-Source: AGHT+IHXM/Ve5RsyIf/SYRHEi603lcu5zLbwgvDH2CqmTINrQ6iT0rmtwGqTs6KJtINlX9TsSvwFcI2M8F1sMDjh87M= X-Received: by 2002:ac2:54a8:0:b0:50b:eadf:f173 with SMTP id w8-20020ac254a8000000b0050beadff173mr952488lfk.73.1702337731319; Mon, 11 Dec 2023 15:35:31 -0800 (PST) MIME-Version: 1.0 References: <87plzgbalt.fsf@localhost> <87msujskxg.fsf@localhost> <835y17y5qu.fsf@gnu.org> <874jgrsiyy.fsf@localhost> <86r0jv8efr.fsf@mail.linkov.net> <86zfyg3jgs.fsf@mail.linkov.net> <595d6418-71f6-eec7-e37c-e3987265364c@gutov.dev> <303c567e-7f0d-1fac-1ab4-0099bd98d8dd@gutov.dev> In-Reply-To: <303c567e-7f0d-1fac-1ab4-0099bd98d8dd@gutov.dev> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Mon, 11 Dec 2023 23:35:19 +0000 Message-ID: Subject: Re: [FR] Allow flattened imenu index To: Dmitry Gutov Cc: Juri Linkov , Ihor Radchenko , Eli Zaretskii , Morgan.J.Smith@outlook.com, emacs-orgmode@gnu.org, 58131@debbugs.gnu.org, emacs-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x12d.google.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, RCVD_IN_DNSWL_NONE=-0.0001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.61 X-Spam-Score: -2.61 X-Migadu-Queue-Id: DADF9593DC X-TUID: 1DXeQxGYTkZp On Mon, Dec 11, 2023 at 11:23=E2=80=AFPM Dmitry Gutov wr= ote: > >> But if the LS will produce distinct strings, good. > > All imenu backends, at least all the ones I've seen, produce > > trees, not strings. > > There are exceptions, like the previously mentioned one. What is the imenu backend that produces strings? A list of strings is still a tree, albeit very flat. Some LS's produce such things. Are there imenu backends that produce lists of strings with duplicates? Where, when, how is that not a problem with the existing imenu UI already, and have we heard of it all these years? > > If you collect all the paths from the root to > > all the nodes into lists and make strings thereof, the resulting > > set will always be a distinct strings. So I don't understand the > > problem you were surfacing: any particular imenu backend in mind? > > Do you have an example of such tree produced by Eglot when a class > contains an instance and a singleton method with the same name? No. I thought you did, else why would you bring it up? Grab a Ruby LS and try it. Or maybe say what the ruby-mode imenu backend does? No rush, but as usual I think there's no point discussing odd conjectures without something palpable in front. Thanks, Jo=C3=A3o