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:57:16 +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> <31ede4fc-8ebe-39ac-40c5-91ba08c35178@gutov.dev> <7eab6e94-cb8e-9ae1-d2cd-c0eb1b3bab43@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="15185"; 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:57:50 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 1rCq9m-0003iB-Fc for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Dec 2023 00:57:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCq9X-0002uL-PG; Mon, 11 Dec 2023 18:57:35 -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 1rCq9V-0002tu-Ux; Mon, 11 Dec 2023 18:57:33 -0500 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCq9U-0000WW-A3; Mon, 11 Dec 2023 18:57:33 -0500 Original-Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-50bfa7f7093so6547318e87.0; Mon, 11 Dec 2023 15:57:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702339048; x=1702943848; 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=pF03unEg++WG2E+sVHht416txmbDgQE0Y0RbLP7yDnk=; b=fJA/T8NyzkGcdWf2jrKe1je4vpGz1iDgWJNW1XOu9FU+6KjsQ82SUDIMt6VwCnf6K3 F2nsHZWzaJdwnxUiYDZvVvIutw7E23DJ3FOC4U5qOUvFeyNHMOhNw+sUoKwbqUjDv7AK cWXDcSDGTjEvegThtxOfrkZov050YTVr8kYBiQpSMVm5b0ITqTEjrUZm3LBTuqprkxCC ikzFAH5N73KXLSsGV4Z4zTl062ldNhtdg9fsO5UHBXdoaAx3cJXRPf1SRYqsIyEzINwd K4JfEP6yHGLINgo1AWGgQZqoHyIKXDHvVEo1zpGI34oNkBLvKRKl4fGcwB5HlX9OHe64 zsmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702339048; x=1702943848; 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=pF03unEg++WG2E+sVHht416txmbDgQE0Y0RbLP7yDnk=; b=YNOHVZqL32uptXg5YvaV2f+GLJFKpPSsBveYS9dd7zV4dCRtWtZLr8tadJVVjbuDPW LqYEDZMUqElyH666Ig7C7DTPfacrqvCL1zzSz6yOVjf2EngounQQ50w4a+EJQdiutCi1 bGh6GsjLhMKG7q9dRMWrLFtTU4PqV2//2x1d7IBy25vMOPGocN9/d7ktXBmrIpYAe1pR 4YxXWpULAgzTFPcEHV+KySbHn0ctl/3OBkWiOvnGn93uUUF6qz/c2CZCDh+HP4i9s0C6 f4KXlcXBXmbJf+56mp3j/SftmRH0pqFQMhWk63+XEertrQDgazlpoq6cNxaEJJJuvE6D xa7w== X-Gm-Message-State: AOJu0YwJEbwA2VbuzxhWTvl0jkKxzZOxX85i1zSpSk9ngS3bQZ37ozvu /QGPz60Ipc4VOkf0IfgRLbXFtATdtt29n0jzd8U= X-Google-Smtp-Source: AGHT+IGh3Vrvdf7aCR5PBKYlnfO5XMgfQuh3J3suhpXksbcZiLKhAoYd0Il0iw3+wPvZojBqaAoW/z/IJeNsM5udGUA= X-Received: by 2002:a05:6512:3a92:b0:50c:de34:da09 with SMTP id q18-20020a0565123a9200b0050cde34da09mr3081667lfu.101.1702339048312; Mon, 11 Dec 2023 15:57:28 -0800 (PST) In-Reply-To: <7eab6e94-cb8e-9ae1-d2cd-c0eb1b3bab43@gutov.dev> Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x129.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:313721 gmane.emacs.orgmode:158560 Archived-At: On Mon, Dec 11, 2023 at 11:54=E2=80=AFPM Dmitry Gutov wr= ote: > > On 12/12/2023 01:48, Jo=C3=A3o T=C3=A1vora wrote: > > On Mon, Dec 11, 2023 at 11:41=E2=80=AFPM Dmitry Gutov= wrote: > >> On 12/12/2023 01:35, Jo=C3=A3o T=C3=A1vora wrote: > >>> Or maybe say what the ruby-mode imenu backend > >>> does? > >> Juri just posted a long example of what ruby-mode does (and ruby-ts-mo= de > >> too) in his last message in this thread. > > OK, and doesn't it answer_your_ question? With Eglot > > > > Method > ModuleExample::ClassExample > instance_method > > Method > ClassExample > class_method > > > > If both methods were named "foo" no problem, right? > > But this doesn't look right: if 'class_method' is in a class called > ModuleExample::ClassExample, shouldn't its entry look like > > Method > ModuleExample::ClassExample > class_method > > as well? Take it up with the LS. I didn't write it. > And then, if both 'instance_method' and 'class_method' actually are > called 'foo', then we'd have a problem. Bizarrely, you wouldn't have a tree to start with, which probably explains why the devs of the LS Juri is using opted for that layout. > This entry from his message also looks odd: > > Module > > ModuleExample If you can reproduce it, show the repro. Jo=C3=A3o