[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cl-defgeneric vs random funcall in project.el
From: |
Stephen Leake |
Subject: |
Re: cl-defgeneric vs random funcall in project.el |
Date: |
Thu, 30 Jul 2015 10:29:55 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) |
Dmitry Gutov <address@hidden> writes:
> On 07/30/2015 10:04 AM, Stephen Leake wrote:
>
>> If the "vc project backend" wants to be a "real project backend", then
>> yes, it needs to define project-search-path.
>
> Would its definition add the VC root to the list returned by
> project-search-path-function?
Not if I wrote it; it would not use project-search-path-function.
The point of a "project backend" is that it knows _everything_ about the
project. No stray hooks for users to pervert things.
I would write the vc implementation of project-search-path to return a
flat list of all the directories under the vc root.
>> That would not be useful for editing elisp files; the elisp project
>> backend is useful for that.
>
> There is no elisp project backend. Just an elisp-specific value of
> project-search-path-function.
>
> Which obviously omits project-roots and project-ignores.
Right. The elisp project backend is incomplete.
That's one problem with using two dispatching mechanisms; it's too easy
to get mixtures of incomplete implementations that "seem to work".
--
-- Stephe
- Re: cl-defgeneric vs random funcall in project.el, (continued)
- Re: cl-defgeneric vs random funcall in project.el, Dmitry Gutov, 2015/07/28
- Re: cl-defgeneric vs random funcall in project.el, Stephen Leake, 2015/07/28
- Re: cl-defgeneric vs random funcall in project.el, Dmitry Gutov, 2015/07/28
- Re: cl-defgeneric vs random funcall in project.el, Stephen Leake, 2015/07/29
- Re: cl-defgeneric vs random funcall in project.el, Dmitry Gutov, 2015/07/29
- Re: cl-defgeneric vs random funcall in project.el, Stephen Leake, 2015/07/30
- Re: cl-defgeneric vs random funcall in project.el, Dmitry Gutov, 2015/07/30
- Re: cl-defgeneric vs random funcall in project.el,
Stephen Leake <=
- Re: cl-defgeneric vs random funcall in project.el, Stephen Leake, 2015/07/30
- Re: cl-defgeneric vs random funcall in project.el, Dmitry Gutov, 2015/07/30
- Re: cl-defgeneric vs random funcall in project.el, Stephen Leake, 2015/07/30
- Re: cl-defgeneric vs random funcall in project.el, Dmitry Gutov, 2015/07/30
- Re: cl-defgeneric vs random funcall in project.el, Stephen Leake, 2015/07/30
- Re: cl-defgeneric vs random funcall in project.el, Dmitry Gutov, 2015/07/30
- Re: cl-defgeneric vs random funcall in project.el, Stephen Leake, 2015/07/31
- Re: cl-defgeneric vs random funcall in project.el, Dmitry Gutov, 2015/07/31
- Re: cl-defgeneric vs random funcall in project.el, Stefan Monnier, 2015/07/30