From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [FR] Allow flattened imenu index Date: Mon, 11 Dec 2023 23:35:19 +0000 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33489"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , Ihor Radchenko , Eli Zaretskii , Morgan.J.Smith@outlook.com, emacs-orgmode@gnu.org, 58131@debbugs.gnu.org, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 12 00:36:47 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rCppP-0008UY-BX for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Dec 2023 00:36:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCpoS-0004nA-Lg; Mon, 11 Dec 2023 18:35:48 -0500 Original-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 Original-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 Original-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) In-Reply-To: <303c567e-7f0d-1fac-1ab4-0099bd98d8dd@gutov.dev> 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-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313717 gmane.emacs.orgmode:158556 Archived-At: 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