GNU bug report logs - #26612
25.2; find-file.el -vs- project.el

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Sat, 22 Apr 2017 20:21:02 UTC

Severity: wishlist

Found in version 25.2

Full log


Message #16 received at 26612 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Tom Tromey <tom <at> tromey.com>
Cc: 26612 <at> debbugs.gnu.org
Subject: Re: bug#26612: 25.2; find-file.el -vs- project.el
Date: Sun, 6 Aug 2017 23:59:41 +0300
On 8/6/17 3:41 AM, Tom Tromey wrote:

> Dmitry> What would that command be called, though? And what generic
> Dmitry> function(s) on projects will we need to add?
> 
> The plain function is ff-find-other-file, so maybe
> project-ff-find-other-file?

"ff" meaning "find file"? Not a very semantic name, I'd say.

> Dmitry> So maybe do a search inside project-file-completion-table, for a file
> Dmitry> name matching the current (but with swapped extension)?
> 
> That would work fine, at least as a first draft.

Great!

> As an aside, why are EDE and project.el separate things?

1. Written by different people at different times (naturally).

2. project.el is an API with a sample (ish) implementation based on VC. 
The idea is that core Emacs code (like commands we have in project.el) 
can rely on it, and then a third-party implementation like Projectile 
can define an adapter "project.el backend", and then the said Emacs 
commands will automatically use Projectile (its config files, efficient 
file cache, etc) when the user has Projectile installed. Same for EDE 
users, and we include such adapter already.

We want to improve the VC-backend project backend too, though.

3. For dependencies purposes: Projectile users won't want to load EDE.




This bug report was last modified 7 years and 316 days ago.

Previous Next


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