GNU bug report logs - #77974
Manual updates for the VC-aware project backend

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dmitry <at> gutov.dev>

Date: Mon, 21 Apr 2025 21:52:02 UTC

Severity: normal

Tags: patch

Fixed in version 31.1

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: 77974 <at> debbugs.gnu.org
Subject: bug#77974: Manual updates for the VC-aware project backend
Date: Mon, 28 Apr 2025 01:39:00 +0300
Hi!

On 27/04/2025 08:12, Sean Whitton wrote:

> On Tue 22 Apr 2025 at 12:51am +03, Dmitry Gutov wrote:
> 
>>   @menu
>> +* VC-Aware Project Backend:: Default project backend.
>>   * Project File Commands::   Commands for handling project files.
>>   * Project Buffer Commands:: Commands for handling project buffers.
>>   * Switching Projects::      Switching between projects.
>>   * Managing Projects::       Managing the project list file.
>>   @end menu
> 
> I agree with Eli that it should probably go last, not just because the
> other parts are backend-agnostic, but also because it is probably less
> useful information to a new user than what comes before.

This makes sense to me indeed, even though the backend itself will 
probably be relevant for >90% of the users who read that text.

>> +It has some performance optimizations for listing the files with some of
>> +the popular VCS systems (currently Git and Mercurial).
>> +
>> +@defopt project-vc-include-untracked
>> +``untracked'' files are considered to be part of the project.  To change
>> +that, you can customize this variable to nil.
>> +@end defopt
> 
> We already have the "unregistered" state in VC.  How about using that?
> 
>      By default, files which are neither registered nor ignored are
>      considered part of this proejct.  Customize this variable to nil to
>      change that.

"Neither registered nor ignored" sounds like the definition for 
"unregistered", actually.

Sounds good to me as a phrasing (might even be more accurate than the 
Git definition I quoted previously).

> ... possibly with a cross-reference to the definitions of the VC terms.

If there is a node to reference, happy to.

> (And maybe we should rename the variable?)

Doesn't seem worth the hassle for us and existing users, TBH.




This bug report was last modified 19 days ago.

Previous Next


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