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, 20 Jan 2016 16:58:18 -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> <569DD470.2060603@yandex.ru> <569ED9F6.3050003@yandex.ru> <569EE733.6090406@yandex.ru> <569FAA57.5000302@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453327118 17757 80.91.229.3 (20 Jan 2016 21:58:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jan 2016 21:58: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 Wed Jan 20 22:58:29 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 1aM0lp-0002QI-2I for ged-emacs-devel@m.gmane.org; Wed, 20 Jan 2016 22:58:29 +0100 Original-Received: from localhost ([::1]:45211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM0lo-000524-7C for ged-emacs-devel@m.gmane.org; Wed, 20 Jan 2016 16:58:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM0lk-00051A-W5 for emacs-devel@gnu.org; Wed, 20 Jan 2016 16:58:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM0lg-0004Kc-VI for emacs-devel@gnu.org; Wed, 20 Jan 2016 16:58:24 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:50696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM0lg-0004KJ-Qz for emacs-devel@gnu.org; Wed, 20 Jan 2016 16:58:20 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id u0KLwIDE003342; Wed, 20 Jan 2016 16:58:18 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id DE7F9602D8; Wed, 20 Jan 2016 16:58:18 -0500 (EST) In-Reply-To: <569FAA57.5000302@yandex.ru> (Dmitry Gutov's message of "Wed, 20 Jan 2016 18:40:07 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5556=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5556> : inlines <4204> : streams <1574188> : uri <2123881> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:198461 Archived-At: > But why do we care about that? Each backend author could invent their own > "dispatchable" completion table (with cl-defstruct), That might break existing code which looks at minibuffer-completion-table. > or just use > (cons > 'my-special-table > (lambda (string pred action) > ...)) (my-special-table toto) is a valid completion table. > Ah, so they'll be kind of named closure subtypes. Yes. They'd be sub-types of `function'. I kind of like the idea of adding such a functionality because it would come in handy in stream.el and nadvice.el (could improve performance of stream.el, and would clean up the hackish part of nadvice). This use for completion-tables is not a good justification to introduce the feature, OTOH. We could use this feature there if it's available, tho. Stefan