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:23:13 +0200 Message-ID: <303c567e-7f0d-1fac-1ab4-0099bd98d8dd@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> 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="12292"; 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:24:36 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 1rCpda-0002yb-M8 for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Dec 2023 00:24:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCpcW-0001bl-45; Mon, 11 Dec 2023 18:23:28 -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 1rCpcU-0001b9-BM; Mon, 11 Dec 2023 18:23:26 -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 1rCpcS-0007sL-GG; Mon, 11 Dec 2023 18:23:26 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 0FD42320213B; Mon, 11 Dec 2023 18:23:19 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 11 Dec 2023 18:23:20 -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:sender:subject:subject:to:to; s=fm3; t= 1702336999; x=1702423399; bh=gw/QAKMoWH9W0QuArDf7KwKl4wkIIjSOvjw 0amEb7/c=; b=R/7DBj95GfYJ4rRQMgnZvB7MjUSQ1aJCKyn0x8qrm2LgynjHnTO nkPVJcinbJMBA/uglMom/zhixDiqABdT34mAh1rdApVXV3cd8BTUCaf7HVhF+efN 96QBDUpOFMDiXVlKDuZPSWw1zUJUzl1rZCpeTJUuAkDM39jTle3pYykFj2f1Ebkc qBETB5zyYXyg1vJ0TtS3nAj0K/WLUOf9+IkQUmj+HNMQKrGNlztyY20YJ6xEhhm9 rlyA/VaAvvYOvtMp45Yd7fbv/TWf/EIhHPCImHLmsELRvOobe8IUgLwtWgIRU+a5 kwScYpDNYXJZpwnE+o4y/9yhVnR/Y+Zr1yg== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1702336999; x=1702423399; bh=gw/QAKMoWH9W0QuArDf7KwKl4wkIIjSOvjw 0amEb7/c=; b=kmvEHdnUK0V8M1BxuJ3tTVdlTYvA00zlD/PiK4FX1AU3hMCvC3x FUR5Q5xo23LZ0DKIic394YrADH55igFbAqsNkykx5rN8+QpprRa7hIadzYwhaeAn qMt569MInI/DNArL3+1oMSSEqhvhkqITgcXA//sEVdGBOH1FXne5KDfFDUtv+3tN 9+5NmJa8JSm3iAYsIF9vhqZNyy992g065frl78Oyo5MTiOeUVfKbp+4kAbpzVABX fkaRHw6gvGNsylGdtSGxAD0JVCO7V4fuQVw4oUZVhAEQM+u4sNGmJarOiGYqwzfH fA2nzNLvmpf2iR1TyBDtpfC4BTGpztg1txA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelfedgtdelucetufdoteggodetrfdotf 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:23:17 -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:313716 gmane.emacs.orgmode:158555 Archived-At: On 12/12/2023 01:10, João Távora wrote: > On Mon, Dec 11, 2023 at 7:24 PM Dmitry Gutov wrote: >> It's no invention, it's docstring syntax for reference to a method. > In Ruby right? Yes, in RDoc. Or Javadoc, for that matter. Probably some other languages as well. >> 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. > 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?