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: Fri, 18 Sep 2015 13:07:07 -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> <55FB01BD.1070909@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442596058 16492 80.91.229.3 (18 Sep 2015 17:07:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2015 17:07:38 +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 Fri Sep 18 19:07:27 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 1Zcz8A-0004L6-Ud for ged-emacs-devel@m.gmane.org; Fri, 18 Sep 2015 19:07:27 +0200 Original-Received: from localhost ([::1]:40660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zcz8A-00029l-D0 for ged-emacs-devel@m.gmane.org; Fri, 18 Sep 2015 13:07:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zcz7x-00029Y-DP for emacs-devel@gnu.org; Fri, 18 Sep 2015 13:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zcz7u-0007te-5m for emacs-devel@gnu.org; Fri, 18 Sep 2015 13:07:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:44887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zcz7u-0007s2-1w for emacs-devel@gnu.org; Fri, 18 Sep 2015 13:07:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AxFgA731xV/2yixEVcgxCEAoVVu0CHSwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEDAVYjEAsOJhIUGA0kiDcIzyMBAQEBBgIBH4Uchh6FBQeELQWQNIk5mVKBRSOCChyBbiKCeAEBAQ X-IPAS-Result: A0AxFgA731xV/2yixEVcgxCEAoVVu0CHSwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEDAVYjEAsOJhIUGA0kiDcIzyMBAQEBBgIBH4Uchh6FBQeELQWQNIk5mVKBRSOCChyBbiKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="165244392" Original-Received: from 69-196-162-108.dsl.teksavvy.com (HELO ceviche.home) ([69.196.162.108]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 18 Sep 2015 13:07:08 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id E33B96620D; Fri, 18 Sep 2015 13:07:07 -0400 (EDT) In-Reply-To: <55FB01BD.1070909@yandex.ru> (Dmitry Gutov's message of "Thu, 17 Sep 2015 21:09:01 +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:190060 Archived-At: >> Indeed, the kind of completions you're suggesting will require >> such tweaks. > It brings up a related issue: `category' is a metadata element. Do we > really want to require every project-file-completion-table > implementation to include that piece of metadata? > Being able to assign it to the returned table in find-file-in-project > would be handy. Right. 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. We should try and unify the metadata returned by the completion-tables and the metadata returned by the completion-at-point-functions (or provided via completion-extra-properties). >>> You'll be able input "/file", and it'll match "foo/bar/file.el". >> I don't see how `partial-completion' would do that. > The same way as "-firefox" expands to "browse-url-firefox"? Ah, I see. But that means all the files are returned as one flat list (without using completion-boundaries). Might be a good idea. >> [ 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 "**". ] > Why not? Couldn't find that 25th hour! >> - 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. > I rather leave that for a separate style, too permissive for my taste. Agreed, but occasionally I need such things, and that's where the * globs come in handy ;-) Stefan