From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#22407: Better support external completion tools Date: Tue, 19 Jan 2016 21:31:33 -0500 Message-ID: References: <569EDF2B.4040907@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453257147 19967 80.91.229.3 (20 Jan 2016 02:32:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jan 2016 02:32:27 +0000 (UTC) Cc: 22407@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 20 03:32:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aLiZC-0000YL-LH for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jan 2016 03:32:14 +0100 Original-Received: from localhost ([::1]:39897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLiZ8-0006Gr-Ot for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2016 21:32:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLiZ5-0006Gi-Mn for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2016 21:32:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLiZ0-0002or-Mc for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2016 21:32:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLiZ0-0002ol-Iu for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2016 21:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aLiZ0-0002ng-CM for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2016 21:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jan 2016 02:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22407 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22407-submit@debbugs.gnu.org id=B22407.145325709910543 (code B ref 22407); Wed, 20 Jan 2016 02:32:02 +0000 Original-Received: (at 22407) by debbugs.gnu.org; 20 Jan 2016 02:31:39 +0000 Original-Received: from localhost ([127.0.0.1]:54240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aLiYc-0002jz-RK for submit@debbugs.gnu.org; Tue, 19 Jan 2016 21:31:39 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44233) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aLiYZ-0002jp-Uc for 22407@debbugs.gnu.org; Tue, 19 Jan 2016 21:31:37 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id u0K2VY25018392; Tue, 19 Jan 2016 21:31:34 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id D461FAE9D8; Tue, 19 Jan 2016 21:31:33 -0500 (EST) In-Reply-To: <569EDF2B.4040907@yandex.ru> (Dmitry Gutov's message of "Wed, 20 Jan 2016 04:13:15 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered ATR_WMN=0.2, RV5555=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5555> : inlines <4200> : streams <1573745> : uri <2123389> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111783 Archived-At: > I don't see how the predicate could be used at all. As for regexp, we should > make a survey of the existing external completion tools, and see how many of > them take a regexp for this purpose. I was thinking of applying (within Emacs) the regexp/predicate to a list of candidate returned by the external tool. Not passing it directly to the external tool > As an aside, I wonder if the current completion styles, at least, could each > be automatically implemented on top of the input-to-regexp functions, > without loss in efficiency. "input-to-regexp"? Sorry, doesn't ring a bell. >> Probably neither would work well enough, tho (e.g. if the >> completion-table includes candidates that fix typos in the user-input >> string). > Neither will be perfect, that's for sure. But maybe we don't have to worry > about that too much: IME, users are mostly interested in the distinction > between prefix and fuzzy completion, with many preferring the latter. Agreed. Honoring completion-styles is not very important. > Using #'identity as display-sort-function should work, though. Exactly. Stefan