GNU bug report logs - #73736
31.0.50; project and therefore eglot don't work without git

Previous Next

Package: emacs;

Reported by: Eric Gillespie <epg <at> pretzelnet.org>

Date: Thu, 10 Oct 2024 16:45:02 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Joost Kremers <joostkremers <at> fastmail.fm>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: Jim Porter <jporterbugs <at> gmail.com>, 73736 <at> debbugs.gnu.org, Eric Gillespie <epg <at> pretzelnet.org>
Subject: bug#73736: 31.0.50; project and therefore eglot don't work without git
Date: Fri, 11 Oct 2024 10:53:24 +0200
On Fri, Oct 11 2024, Dmitry Gutov wrote:
> On 10/10/2024 21:52, Jim Porter wrote:
>> On 10/10/2024 11:42 AM, Dmitry Gutov wrote:
>>> This isn't very plug-and-play, but you can customize project-vc-extra-
>>> root-markers to include any other files that distinguish the root of a
>>> project. For example, Cargo.toml.
>> I wonder, could major modes provide project.el with some default values
>> for that option? Then rust-mode could add Cargo.toml, python-mode could
>> add pyproject.toml, and so on.
>
> That's a natural question, but it would result in different results for
> "current project" for files in the same directory (which often enough use
> different major modes).

What about a single marker that works for any project? This is a
work-around that Projectile uses and I'm using it with project.el as well,
with: 

```
(add-to-list 'project-vc-extra-root-markers ".project")
```

-- 
Joost Kremers
Life has its moments




This bug report was last modified 304 days ago.

Previous Next


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