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, 08 Jan 2016 02:39:15 -0500 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> <568C6DE5.8040201@yandex.ru> <568F1327.30905@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452238785 2177 80.91.229.3 (8 Jan 2016 07:39:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2016 07:39:45 +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 Jan 08 08:39:35 2016 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 1aHRe3-00024s-6P for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 08:39:35 +0100 Original-Received: from localhost ([::1]:34320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHRe2-00066r-8C for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 02:39:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHRdq-00066b-L4 for emacs-devel@gnu.org; Fri, 08 Jan 2016 02:39:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHRdn-0003F9-Cj for emacs-devel@gnu.org; Fri, 08 Jan 2016 02:39:22 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:32527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHRdn-0003Cp-8H for emacs-devel@gnu.org; Fri, 08 Jan 2016 02:39:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV/xQDr7hcgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQEGAQEBAR6LOoUFB4QtBYtEbJJnhmmNP4FFI4QWIIJ4AQEB X-IPAS-Result: A0A2FgA731xV/xQDr7hcgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQEGAQEBAR6LOoUFB4QtBYtEbJJnhmmNP4FFI4QWIIJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="187726607" Original-Received: from 184-175-3-20.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.20]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Jan 2016 02:39:15 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6086E6613F; Fri, 8 Jan 2016 02:39:15 -0500 (EST) In-Reply-To: <568F1327.30905@yandex.ru> (Dmitry Gutov's message of "Fri, 8 Jan 2016 04:38:47 +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:197800 Archived-At: > Wasn't thinking of anything in particular. Some other completion for a file > name from a flat list, that doesn't go through read-file-name? I'm not sure if you'd count filecache.el as "goes through read-file-name", but it seems relevant. As for "completion in outside tools", one "easyish" way would be to hook right into completion--nth-completion. IOW instead of providing ad-hoc implementations for try-completion, all-completions, completion-boundaries, etc... you'd provide ad-hoc implementations of minibuffer-try-completion and minibuffer-all-completions, which have the advantage of allowing more flexibility in its output (e.g. the input doesn't need to be a prefix of the output). Stefan