From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [FR] Allow flattened imenu index Date: Tue, 12 Dec 2023 01:54:14 +0200 Message-ID: <7eab6e94-cb8e-9ae1-d2cd-c0eb1b3bab43@gutov.dev> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3098"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 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: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 12 00:55:23 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 1rCq7O-0000QR-5e for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Dec 2023 00:55:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCq6X-00021v-2r; Mon, 11 Dec 2023 18:54:29 -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 1rCq6T-00021Y-Cl; Mon, 11 Dec 2023 18:54:25 -0500 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCq6P-0008T4-Jn; Mon, 11 Dec 2023 18:54:24 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 1DF673200A4B; Mon, 11 Dec 2023 18:54:18 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 11 Dec 2023 18:54:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1702338857; x=1702425257; bh=SBuBdDS2QFWiSsd4M2u4bBiL0XVwYT7wVXTpBStSUmY=; b= pj0GVu9/1NWMD2Kn9QFXeI0aLicmg6I/4JWy90cWVt+/Nd8HYqZBZ5OeQ1n9w7DZ Dh7Q1tGUh0DXy+iFbR3RSSFwwejggkVB2EoKqTOQwfgH3KJjZG64lKp3FzDgXSHs O/eL1UMqIQqJE09aJxvn1XjaadNi7c6+nyHaUV11LsaJ2eWApacgiD41gSNXvk4q 5eEBWoI/PJpwCSrrA8TYUcV7YHHTRPWsYcdd/YF31vFEF94z5WTl8F+ndgdwEcVX msJnEUg1/750RVd6AsHZaB1uA6TtSnoUAVGtoJj+vYUE2VKIrxIFMew3WdY6A6KH oW6WzqNTsIvBmmxdN9Iewg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1702338857; x= 1702425257; bh=SBuBdDS2QFWiSsd4M2u4bBiL0XVwYT7wVXTpBStSUmY=; b=h SjH3b/PlSa8DESQGf1SlKyX1AzqFffOlWD03DNZhcekcao2xLPO+eE7VMYApOevq 2u8IKilsfnNNKHIlIikNA7NaIOYzAC+46Oewhi4t0tWGdB4Hpaan2W7v0N5bpf/G BLEMbcY7V/IdBOtPXemzUIivll95kNij07SN1sAdBSYkNtVGDOB8yxTgOfSXiSRu ZuWuKTvouaCRLBC3Vhk17SUYZ6va+08PgeEDzxQeHwSzr3VBBq1eQLk11U9og+af ZbHjDmRg5m3sG967omZ2qzK4GkZLz7Z97QAnB4vauj+jiDWY1utGgLwX94omB4/f Y5tvSHIFPkaiWnseySZKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelfedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephfffheeljeffgeffueeghfekkedtfffgheejvdegjeettdduheeufffggfef jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Dec 2023 18:54:15 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=64.147.123.25; envelope-from=dmitry@gutov.dev; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -52 X-Spam_score: -5.3 X-Spam_bar: ----- X-Spam_report: (-5.3 / 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, NICE_REPLY_A=-2.501, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:313720 gmane.emacs.orgmode:158559 Archived-At: On 12/12/2023 01:48, João Távora wrote: > On Mon, Dec 11, 2023 at 11:41 PM Dmitry Gutov wrote: >> On 12/12/2023 01:35, João Távora 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-mode >> 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? And then, if both 'instance_method' and 'class_method' actually are called 'foo', then we'd have a problem. This entry from his message also looks odd: Module > > ModuleExample