[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find-file-project

From: Stephen Leake
Subject: Re: find-file-project
Date: Thu, 07 Jan 2016 01:12:44 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt)

Dmitry Gutov <address@hidden> writes:

> Hi Stefan,
> On 09/18/2015 08:07 PM, Stefan Monnier wrote:
>> Of course, project-find-file could wrap the backend's completion table
>> so as to add its own `category' info to the meatadata, but
>> it's cumbersome.
> Getting back to the question of the new category, do you think
> `project-file' is a good enough name?
> Could we want to reuse it for non-project, or non-file completions, in
> the future?
> Here's the basic patch that I want to install, which should be enough
> to introduce the feature in 25.1 (to make project.el reasonably
> interesting at least for some fraction of users).

This does not address the issue of duplicate file names in the path,
which I think is important.

For example:

$ address@hidden address@hidden find /Projects/emacs/master/lisp/ -name 

Attached is my implementation of locate-uniquified-file, which addresses
this. That can be used to implement project-find-file.

It uses a "path iterator" object, to avoid the issue of recursive
path vs non-recursive path.

I have tests for these as well, if you are interested.

-- Stephe

Attachment: uniquify-files.el
Description: application/emacs-lisp

Attachment: path-iterator.el
Description: application/emacs-lisp

reply via email to

[Prev in Thread] Current Thread [Next in Thread]