[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: find-file-project
From: |
Drew Adams |
Subject: |
RE: find-file-project |
Date: |
Wed, 20 Jan 2016 15:46:16 -0800 (PST) |
> > I don't understand why you can't use lax completion in connection
> > with the existing framework (including `all-completions',
> > `minibuffer-completion-table', etc.).
>
> all-completions is documented to use the "prefix" matching, not any
> other kind. Doing it differently would break some other code that relies
> on that.
I use `all-completions' and nevertheless am able to do regexp matching,
substring matching, and several different kinds of fuzzy matching.
Maybe you meant `try-completion'? And even that uses `completion-styles',
which is pretty flexible (not in the way that I wanted, but at least it
allows for different kinds of completion).
> > I (and others) have been doing that for years, including for many
> > different kinds of lax completion. What is so special about what
> > you think you need?
>
> I don't know what you've been doing, and how.
I don't know what your problem is with using the existing framework
to be able to do "lax completion".
[I've written here many times about what I've been doing, and how.
And the code is freely available, for anyone who is interested.
But the point is not what I have been doing (unless you are really
interested).]
The point is that you shouldn't need to sacrifice `all-completions'
or `minibuffer-completion-table' just to be able to get "lax
completion". At least not any lax completion I've ever seen.
> > You no doubt have your reasons for doing things your own way.
> > Why not do that in your own library (compatible or incompatible)?
>
> Stefan wanted company-mode to use completion-at-point-functions, and the
> completion tables they return. They're not sufficiently powerful, yet.
So don't use `completion-at-point-functions', if they don't give you
what you want. I don't use them. That shouldn't mean that you need
to screw `all-completions' or `minibuffer-completion-table'.
`completion-at-point-functions', too limited or not, is fairly recent.
`all-completions' and `minibuffer-completion-table' are decades old.
They are solid, basic tools.
- Re: find-file-project, (continued)
- Re: find-file-project, Stefan Monnier, 2016/01/19
- Re: find-file-project, Dmitry Gutov, 2016/01/20
- Re: find-file-project, Stefan Monnier, 2016/01/20
- Re: find-file-project, Dmitry Gutov, 2016/01/20
- RE: find-file-project, Drew Adams, 2016/01/20
- Re: find-file-project, Dmitry Gutov, 2016/01/20
- RE: find-file-project, Drew Adams, 2016/01/20
- Re: find-file-project, Dmitry Gutov, 2016/01/20
- RE: find-file-project, Drew Adams, 2016/01/20
- Re: find-file-project, Dmitry Gutov, 2016/01/20
- RE: find-file-project,
Drew Adams <=
- Re: find-file-project, Dmitry Gutov, 2016/01/20
- RE: find-file-project, Drew Adams, 2016/01/20
- Re: find-file-project, Dmitry Gutov, 2016/01/20
- Re: find-file-project, Dmitry Gutov, 2016/01/20
- Re: find-file-project, Stefan Monnier, 2016/01/21
- Re: find-file-project, John Wiegley, 2016/01/17
- Re: find-file-project, Dmitry Gutov, 2016/01/17
- Re: find-file-project, John Wiegley, 2016/01/17
- Re: find-file-project, Dmitry Gutov, 2016/01/17