From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Should EDE use project.el [PATCH] Date: Mon, 16 May 2022 18:09:38 +0200 Message-ID: <20220516160938.6i5hy65l5s5d7in3@Ergus> References: <20220516114643.5234do3n6zbyxv7r.ref@Ergus> <20220516114643.5234do3n6zbyxv7r@Ergus> <20220516150035.f5yryr6uby6msfqy@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30033"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 16 19:01:07 2022 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 1nqe5h-0007Xy-Ip for ged-emacs-devel@m.gmane-mx.org; Mon, 16 May 2022 19:01:05 +0200 Original-Received: from localhost ([::1]:33550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqe5g-0001r3-K3 for ged-emacs-devel@m.gmane-mx.org; Mon, 16 May 2022 13:01:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqdI2-00021D-Jk for emacs-devel@gnu.org; Mon, 16 May 2022 12:09:46 -0400 Original-Received: from sonic316-11.consmr.mail.bf2.yahoo.com ([74.6.130.121]:46299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqdHz-0005NY-M3 for emacs-devel@gnu.org; Mon, 16 May 2022 12:09:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1652717381; bh=n3QZ/xhRVP9keJbQd/K1GJBn1JT8Qk+OoU+2B9O5y0I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=WAQOhCQ+x0eSVUDg5a3eA9UEiQgrpeaehZqWlFvCrreJlVIkgg8ZyXTmxAgBCjVn8APRU1CJNY/Kmjmc9K340nRHWQVdjzb1xhe9pN7V56qrBJWfBlDwu+HStYQRgZ1PBdT7XMO+s1jPxBzJlEhQHnZ7H/CzyTYl1leQd0yQaDmOjsN8bdwxpcLlmgwuuM8QnHPex9jvruYPE4HGc+/NxTmVT10VYo+st7qn1RSx0zbWmBYFJBM9lFtrjdcfI1CQg8iN/CdaDnV/t/iY0B2u8GP+4joMMAXJCB7dlBy6y1LJJAXV6AZXM3xCZWSjBmKt38ovSS5fzE8q0zEswSt9Uw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1652717381; bh=ZJSdmFP3mKXoeO0vjD45KwuLbHK98cH7cbaxEd8+O5t=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=O78ujvSsJ/SBc6ccqdJDb1Wvo4tmVhDIh+iI4vaA2ERXB1A/v5Clu6vUSAZcV1pk8vcTopVbHoMU80z7+QNQsCoI0bgra7IAn3jbWu0tQyddjQpxDRr0efxvSJ/YQG55KQAxZmg+POv+k5QuXVCMhmm9VkMXoWo705QK36vOFNHRdF18KLuhqQR4vELRjvPXzixWtieZ1lmEjoEUg50aIs3wXNqJ4hHuyDWh9x9/QcoccTgrsLThz9iv4KWguZs0ifWd8Tjc41X3DDIUNOxyyIfLXP+jcn6gD6purxL/+n11olWFrkIr0uODcInILGkjT6sbDPLbppy5jI0HFbwNNg== X-YMail-OSG: Oa8EeKcVM1mQIS1e6by6idwR167XKFUdJriwmok.gfnMHt0AZo8apOW2pOlCltA KfWBwr6mwjRRMrasPBxFiYCkj1yoEmief0WdV0faO7nL7NZVazJnwXN6d1X9K5NMh.R27NRA7BgK MWR6dDV_zDagJL3lFbjGdV62XQNjr.mMATuvoMjz_CprHwP6XMc2Dws1TeWWAsnkAUgj7ZTTXfqi 6Yq9heSeGQKLDBTJxMy4RH4.GwIZXE2BlVU6ehBZ9DGTjms0bhsB0H3IAHfyR6KP4dVZT1zlOSEM jWDHESYM15wPHJEPVO4gJrHVAtjWAquZz9G3br3WQbwNDZYl5MBTKrlgv_t.aL0HEKE88j2djQd4 7yvWoBSK_uNpJNfBJZJvh0GpS6tk8saYPKV_cs4aOc92uoaTaJkaWgkqFrmkJTm.yijOA4c2aM2g o0P9hkyjUG2I5sUuz3VgicUtOlQZ6FuCc7KYpBYe_zR.wlsJwQJErZZ0liK25etkFEXR5CWa_iwd DnI9g1Dy_qzZ_xYyKWPprDR53iYC.dl2jIOk_e.GZLyqteZUhj_Q3Jp6tM3iyPWYcYCXi6wiHKGO fSrerWUz0NlPQOGwvhHlLOXimStIE4XJnFCJNo_w0U5d4TuySTZwti2ZdoG55Q3ge1MlmqYXGwHC DUWEpMdd0CqQ6z2c6fIC_58IpHgTV5CRrWhiq8RyX5rnu40GAO4YnaT4k.6tgI3PQMKPycJS6A_d SVuOZC2uq9LB1i2AG3mRlU_na54TUFCrthPuETIZED.96v43ky_pRahyGYXJEyOTEWfeihL1.Twn r6JA0TFdy2fvNIUTTK060HA3GUbpY8JbaX7m5dJ5U6 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.bf2.yahoo.com with HTTP; Mon, 16 May 2022 16:09:41 +0000 Original-Received: by hermes--canary-production-ir2-695448f88c-ldl7m (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a09d512bff7bbb6f831b2109318b096f; Mon, 16 May 2022 16:09:39 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.20188 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.130.121; envelope-from=spacibba@aol.com; helo=sonic316-11.consmr.mail.bf2.yahoo.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" Xref: news.gmane.io gmane.emacs.devel:289809 Archived-At: On Mon, May 16, 2022 at 06:50:59PM +0300, Dmitry Gutov wrote: >On 16.05.2022 18:00, Ergus wrote: >>Hi: >> >>I just attached an extremely simple (intested) attempt to make cedet use >>Project.el.. Maybe Dmitry or someone with more experience may complete >>this and extend it when possible? > >Looks okay to me. > >To give more detailed feedback, one might need more knowledge of >CEDET, I think > >Do you use it? CEDET, I mean. If yes, this can be a beneficial >direction to go in. My observations say it's only falling out of >favor, though. > Actually I don't know how to use it properly yet. I just tried this because I tried something with gtags and I found that it has its own backend for global/gtags BUT un-optimized and tramp and similes fail (as expected). The last commit in their git repo was in 2019 and it seems to be almost totally unmaintained (in a quick test I found some issues immediately)... which means I am not even sure if there is anyone still using it. So my first recommendation would be to remove/deprecate it in favor of project.el; but as I know that such a suggestion is impossible, I just recommend to make it a wrapper for project.el by default when possible. The only feature missing in project.el to totally overlap EDE is the concept of update; which cedet seems to use but project does not understand (probably because in the new backends may not be needed..) Best, Ergus >> >>Best, >>Ergus >> >>On Mon, May 16, 2022 at 01:46:43PM +0200, Ergus wrote: >>>Hi: >>> >>>Recently working in the gtags-mode package I thought to add a backend >>>for ede/cedet... but I have found that most of the ede features overlap >>>or coincide with ones in project.el. >>> >>>So my question is: Isn't it easier to add a backend in locate.el to make >>>ede use project as one ede-locate-setup-options? >>> >>>I am not sure about how useful is ede or cedet these days as they seem >>>to be a bit unmaintained, but IMHO, if we don't want to remove them (for >>>some reason) but still keep project.el as the preferred way to go, then >>>maybe cedet should use the project.el functions by default. >>> >>>The basic implementation seems to need only: >>> >>>initialize-instance >>>ede-locate-ok-in-project >>>ede-locate-file-in-project-impl >>>ede-locate-create/update-root-database >>> >>>Implementing all these may be extremely simple but not sure if it worth >>>the effort. >>> >>>What do you suggest? >>> >>>Best, >>>Ergus >>> >