From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: find-file-project Date: Wed, 16 Sep 2015 21:26:38 -0400 Message-ID: References: <86pp1j4ejm.fsf@stephe-leake.org> <55F899EA.7050700@yandex.ru> <86lhc73wog.fsf@stephe-leake.org> <55F8F2FA.6060902@yandex.ru> <867fnq1oe9.fsf@stephe-leake.org> <55F9A13A.3070101@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442453220 24592 80.91.229.3 (17 Sep 2015 01:27:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Sep 2015 01:27:00 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 17 03:26:50 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZcNyL-0007jy-Bf for ged-emacs-devel@m.gmane.org; Thu, 17 Sep 2015 03:26:49 +0200 Original-Received: from localhost ([::1]:54975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcNyK-0000UD-Qj for ged-emacs-devel@m.gmane.org; Wed, 16 Sep 2015 21:26:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcNyH-0000Tq-Jz for emacs-devel@gnu.org; Wed, 16 Sep 2015 21:26:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcNyC-00084U-Kv for emacs-devel@gnu.org; Wed, 16 Sep 2015 21:26:45 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:47704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcNyC-00084I-Ha for emacs-devel@gnu.org; Wed, 16 Sep 2015 21:26:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV/0jo92hcgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQEGAgEfhRyGHoUFB4QtBZltmxcjggocgW4igngBAQE X-IPAS-Result: A0A2FgA731xV/0jo92hcgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQEGAgEfhRyGHoUFB4QtBZltmxcjggocgW4igngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="165073350" Original-Received: from 104-247-232-72.cpe.teksavvy.com (HELO pastel.home) ([104.247.232.72]) by ironport2-out.teksavvy.com with ESMTP; 16 Sep 2015 21:26:39 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D402162363; Wed, 16 Sep 2015 21:26:38 -0400 (EDT) In-Reply-To: <55F9A13A.3070101@yandex.ru> (Dmitry Gutov's message of "Wed, 16 Sep 2015 20:04:58 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:190040 Archived-At: > You might have to use a different `category' and set > up a `completion-category-overrides' entry that would only use > `partial-completion' as its style. Indeed, the kind of completions you're suggesting will require such tweaks. But I also think they'll require a new completion style. > You'll be able input "/file", and it'll match "foo/bar/file.el". I don't see how `partial-completion' would do that. [ I did have some earlier version of partial completion match "**/file" to "foo/bar/file.el", but the current code doesn't have that, and even less so without a "**". ] > Later, we can even add a new, more permissive style. We could use it in > other places as well. I'd love to have new completion styles, indeed. Suggestions: - combine substring and partial-completion, e.g. "a*l/b" can find "cable/rob.el". - foo/bar should be able to find "tv/football/field/barberis.txt". I.e. like `partial-completion' but if "foo" doesn't match anything, look for it recursively. - Same thing but where the order doesn't matter: bar/foo should also find "tv/football/field/barberis.txt". This one should probably automatically recurse, even if there is a match in the current directory. - maybe "bar/foo" should also find "tv/myfootball/field/umbertobarberis.txt". Stefan