From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.bugs Subject: bug#48747: 28.0.50; add project-name generic Date: Fri, 15 Jul 2022 06:09:48 -0700 Message-ID: <86a69awmhv.fsf@stephe-leake.org> References: <86eedoi0jw.fsf@stephe-leake.org> <72c3ec98-632b-b8ae-53b9-fdcb3b85f111@yandex.ru> <87zghak365.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6333"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) Cc: 48747@debbugs.gnu.org, Dmitry Gutov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 15:11:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oCL6C-0001US-Pn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 15:11:17 +0200 Original-Received: from localhost ([::1]:35302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCL6A-0003QQ-CX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 09:11:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCL5y-0003QI-4X for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 09:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCL5x-0000QM-R8 for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 09:11:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCL5x-0000YG-MO for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 09:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Leake Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2022 13:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 48747-submit@debbugs.gnu.org id=B48747.16578906092031 (code B ref 48747); Fri, 15 Jul 2022 13:11:01 +0000 Original-Received: (at 48747) by debbugs.gnu.org; 15 Jul 2022 13:10:09 +0000 Original-Received: from localhost ([127.0.0.1]:39819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCL56-0000Wg-St for submit@debbugs.gnu.org; Fri, 15 Jul 2022 09:10:09 -0400 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:41105 helo=progateway7-pub.mail.pro1.eigbox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCL55-0000WK-FV for 48747@debbugs.gnu.org; Fri, 15 Jul 2022 09:10:08 -0400 Original-Received: from cmgw10.mail.unifiedlayer.com (unknown [10.0.90.125]) by progateway7.mail.pro1.eigbox.com (Postfix) with ESMTP id 9AE90100413CE for <48747@debbugs.gnu.org>; Fri, 15 Jul 2022 13:09:53 +0000 (UTC) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with ESMTP id CL4ro5OvbCokGCL4ropfOf; Fri, 15 Jul 2022 13:09:53 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=d+QwdTvE c=1 sm=1 tr=0 ts=62d16721 a=dWLzHQi6WpdymmZIwiVdBw==:117 a=Fln8i1WyhtedwaIJAdHvmw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=RgO8CyIxsXoA:10:nop_rcvd_month_year a=vvvmwbhNdt4A:10:endurance_base64_authed_username_1 a=OocQHUDgAAAA:8 a=vaJtXVxTAAAA:8 a=rS6aZdGles95ucaTBHwA:9 a=JQbH57HajXoA:10:uccc_2email_address a=ThI0f8vJ1GEA:10:hookup_email_user_1 a=xUZTl98r3Qw_uB5NK3jt:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fnLY4X1AC2zsOnEew5DjJWds+4XlgIoYNXM3U/EQo2k=; b=hQG+iLADwlt0YNNvvBAHBq5Rzr s6/NVu9dnVQ105MmxXrgVuxIANn0GbC7j3po9099J8ohdrzak1CVKlzRuoNjZ2zBi86o3lEZousAR wKCvGjb/7MLMWnBYjP9Rm+3Ea80doan4TyZ3gFeYHUFB19flV+eaTllXB8NJKKnuW6UHdZuG1IszC SVWzyfaZ01DZES5ou+AI4u61ArONyZo5RnSlTqSftCtu/VsV/y1wYscTEgyt5T/mOi6tJSSgKJOrm 668veqtCfmeGOYy/S6T2nlZV8kg3IYzyjvhExTx3zQRcS8mKEeocj916ZxVo02MgQKUeTiGsM3dAW 8Dxvs04w==; Original-Received: from 135-180-197-170.fiber.dynamic.sonic.net ([135.180.197.170]:55406 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oCL4r-001JEo-40; Fri, 15 Jul 2022 07:09:53 -0600 In-Reply-To: <87zghak365.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 15 Jul 2022 13:48:02 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 135.180.197.170 X-Source-L: No X-Exim-ID: 1oCL4r-001JEo-40 X-Source-Sender: 135-180-197-170.fiber.dynamic.sonic.net (Takver4) [135.180.197.170]:55406 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 3 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237095 Archived-At: Lars Ingebrigtsen writes: > Dmitry Gutov writes: > >>> In project.el, add a 'project-name' cl-defgeneric, to be used in prompts >>> and other situations where the user is asked to identify a project. >>> It must return a string, which is nominally unique among the user's >>> various projects. >>> The default could be 'project-root'. >> >> Would you like to attach a patch that includes the places where we >> would use the new method? >> >> project-prefixed-buffer-name? > > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) > > This was a year ago, and the original bug report didn't really include a > rationale for the cl-defgeneric. Stephen, what would you use this for? My wisi package has a menu of defined projects, allowing the user to choose which one is the "current project"; it shows a project name, which is currently defined in the wisi project type. wisi also has a command to delete a project definition, which prompts for a project, completing on the project name. eglot needs to identify projects; it currently uses the project root, which is not always the best way. The current project.el assumes that projects are only identified by "project-current" in some buffer, so there isn't anywhere in the current code that would use this. Adding it is mainly for extensions like wisi and eglot. -- -- Stephe