GNU bug report logs - #48747
28.0.50; add project-name generic

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Stephen Leake <stephen_leake@HIDDEN>; dated Sun, 30 May 2021 17:40:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 48747 <at> debbugs.gnu.org:


Received: (at 48747) by debbugs.gnu.org; 7 Jun 2021 02:08:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 06 22:08:43 2021
Received: from localhost ([127.0.0.1]:54233 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lq4h1-0000cE-4P
	for submit <at> debbugs.gnu.org; Sun, 06 Jun 2021 22:08:43 -0400
Received: from mail-wm1-f46.google.com ([209.85.128.46]:46840)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1lq4gz-0000c1-TP
 for 48747 <at> debbugs.gnu.org; Sun, 06 Jun 2021 22:08:42 -0400
Received: by mail-wm1-f46.google.com with SMTP id
 h22-20020a05600c3516b02901a826f84095so4099184wmq.5
 for <48747 <at> debbugs.gnu.org>; Sun, 06 Jun 2021 19:08:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=Uy5KI4A8drWLo1TOvRBwxawgC4Q/bc/ByhNo8cM5q6k=;
 b=MvGXvv94tFuL4F+HXn+BymwXu6LlDkFtswx1brc1chgjFVozNxzsiijSM0cObKDEnv
 +DWc7MinN+dzmHFPxJXPu42wA4qVTb/DckKYoCHmMoLARiZw1U1E3iHZDC29FUxVhlnN
 gb7aszf5nwxgBAC8i0FYOpl4742W3UfJVJ+VQaVZryD5iofa7MgTGy1p4E7Q/PwcyoQC
 IRg531cU0oeQ/CEzyhGcTcSSY1GxA8NoIrE2fw53aW1eJ+HYPPE9YzrOg08uOXqf6UQB
 egxMVTlfLHG8wqi52syRh6jSshmmCjSBXN7FdENllSl6EezA6mJZ863AYaBabQPO25u1
 vMVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=Uy5KI4A8drWLo1TOvRBwxawgC4Q/bc/ByhNo8cM5q6k=;
 b=m2hx+OBxx/dqnyajQIKUAm37+MDFPiYlKh9boY2hCWy5v1LH7h4yadcXJaaguS6GYH
 cucBXTLtxelzIweYSFGUlHR+yin48g88S9DJFW3Qkf7OxEqgrKKhHgMqCTBDJE8IVJFJ
 kBrbz7eq0Q6v+eWuKFq7kIuxcJl5fbfm3C9fsvaLwos2cgfs1bFnRK02JgjOSgUOlgn/
 4bSKJpCt+XoFCNnFV+kytgM3FNcAX8xmABqLbunzuVfnjX68zIF+MW8ttRPb9nPxiR5C
 pGFZOVMFoDZoONR0wmbOiKuf3c3wmtW2VnqoZk9L5oMLHSMq561kTktJD7k7itWIQkHa
 mf4g==
X-Gm-Message-State: AOAM530JoPPBZoRj956y44XVMSkc5emlU9XnsMM8FOWGip2qCfvu29Z8
 eGGzCwjsJA4kRn0qP4XynYHf12GZBe0=
X-Google-Smtp-Source: ABdhPJxqaEooptfzrYNeI4l5CWEdeEroxRzjIxjV396Y+Fqo1AwkslDH3by27FcoErl0SRsR3kVQgg==
X-Received: by 2002:a05:600c:190f:: with SMTP id
 j15mr13019836wmq.4.1623031716052; 
 Sun, 06 Jun 2021 19:08:36 -0700 (PDT)
Received: from [192.168.0.6] ([46.251.119.176])
 by smtp.googlemail.com with ESMTPSA id i21sm2788498wmq.12.2021.06.06.19.08.35
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 06 Jun 2021 19:08:35 -0700 (PDT)
Subject: Re: bug#48747: 28.0.50; add project-name generic
To: Stephen Leake <stephen_leake@HIDDEN>, 48747 <at> debbugs.gnu.org
References: <86eedoi0jw.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <72c3ec98-632b-b8ae-53b9-fdcb3b85f111@HIDDEN>
Date: Mon, 7 Jun 2021 05:08:34 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.8.1
MIME-Version: 1.0
In-Reply-To: <86eedoi0jw.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 48747
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Hi Stephen,

On 30.05.2021 20:38, Stephen Leake wrote:
> 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 was also thinking project-prompt-project-dir, but we use absolute 
directory names there, so it seems difficult to incorporate, even if we 
agree to rename and update the docstring: the default implementation of 
'project-name' will supposedly be the base name of the root dir, and 
those are not always unique and easy to recognize.

Or, if the default impl returns the absolute directory name, we couldn't 
use it in project-prefixed-buffer-name.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#48747; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 May 2021 17:39:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 30 13:39:09 2021
Received: from localhost ([127.0.0.1]:60302 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lnPP3-0000f1-KT
	for submit <at> debbugs.gnu.org; Sun, 30 May 2021 13:39:09 -0400
Received: from lists.gnu.org ([209.51.188.17]:34914)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen_leake@HIDDEN>) id 1lnPP2-0000eu-3s
 for submit <at> debbugs.gnu.org; Sun, 30 May 2021 13:39:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60452)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <stephen_leake@HIDDEN>)
 id 1lnPP1-0007hj-QY
 for bug-gnu-emacs@HIDDEN; Sun, 30 May 2021 13:39:07 -0400
Received: from gateway32.websitewelcome.com ([192.185.145.102]:37794)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <stephen_leake@HIDDEN>)
 id 1lnPOz-0001zi-PJ
 for bug-gnu-emacs@HIDDEN; Sun, 30 May 2021 13:39:07 -0400
Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19])
 by gateway32.websitewelcome.com (Postfix) with ESMTP id 786B113C3E
 for <bug-gnu-emacs@HIDDEN>; Sun, 30 May 2021 12:39:01 -0500 (CDT)
Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP
 id nPOvl1n7xFRe9nPOvlueuy; Sun, 30 May 2021 12:39:01 -0500
X-Authority-Reason: nr=8
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:
 Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=UrDfYJB1WEOZCYR3fH+X9QxJCEo44ysjT2k8AjgScXg=; b=Xxrj4FAQjIBIyjF3sVBvdCXyz5
 LhD3gek86+PegmXntBGF3xeawLXsKamUiEMiyuPlN+TEj4leJHvgRwjW9oevLpb54IWfB6sy00CQ4
 D8nBJdvzfIYdL+wkyVbBzx7dJ10K5wXzEfo53RiVaxW6gdjbraO2gUvyYIFQdn9zPWb+CCe+ZFSWt
 pXj4XkNTkye8/mlgUmDu3dbN4dImxA3ZcNfCdwc7h4ZEOyaXYOTShXSjjtukREYcK1hAkLv8KUqjS
 tOGFSFMQNs3wQ9Ur7x1SjsMRU97ig0GN8fHW6diunMkxJqwZix9HzuRbH9FVvfitqN5WgZ9jLyCCA
 oqTEG1Ow==;
Received: from [76.77.182.20] (port=63510 helo=Takver4)
 by host2007.hostmonster.com with esmtpsa (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2)
 (envelope-from <stephen_leake@HIDDEN>) id 1lnPOu-003SUQ-QB
 for bug-gnu-emacs@HIDDEN; Sun, 30 May 2021 11:39:00 -0600
From: Stephen Leake <stephen_leake@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; add project-name generic
Date: Sun, 30 May 2021 10:38:59 -0700
Message-ID: <86eedoi0jw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain
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 - 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: 76.77.182.20
X-Source-L: No
X-Exim-ID: 1lnPOu-003SUQ-QB
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: (Takver4) [76.77.182.20]:63510
X-Source-Auth: stephen_leake@HIDDEN
X-Email-Count: 2
X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t
X-Local-Domain: yes
Received-SPF: neutral client-ip=192.185.145.102;
 envelope-from=stephen_leake@HIDDEN;
 helo=gateway32.websitewelcome.com
X-Spam_score_int: -8
X-Spam_score: -0.9
X-Spam_bar: /
X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1,
 DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001,
 SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

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'.
-- 
-- Stephe




Acknowledgement sent to Stephen Leake <stephen_leake@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#48747; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 24 Oct 2021 07:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.