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: Emacs completion matches selection UI Date: Sun, 05 Jan 2014 11:04:43 -0500 Message-ID: References: <20140102225831.GA19682@c3po> <52C7744F.3000906@yandex.ru> <52C8DABC.4090503@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1388937897 11407 80.91.229.3 (5 Jan 2014 16:04:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2014 16:04:57 +0000 (UTC) Cc: Toby Cubitt , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 05 17:05:03 2014 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 1VzqCC-0005nJ-Lb for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2014 17:05:00 +0100 Original-Received: from localhost ([::1]:58377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzqCC-0003GD-1J for ged-emacs-devel@m.gmane.org; Sun, 05 Jan 2014 11:05:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzqC2-0003Cx-P0 for emacs-devel@gnu.org; Sun, 05 Jan 2014 11:04:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzqBv-0006fz-F0 for emacs-devel@gnu.org; Sun, 05 Jan 2014 11:04:50 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:27162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzqBv-0006ft-Ao for emacs-devel@gnu.org; Sun, 05 Jan 2014 11:04:43 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rwsm/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFG4rwsm/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="44092595" Original-Received: from 184-175-11-38.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([184.175.11.38]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 Jan 2014 11:04:42 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id AB973AE235; Sun, 5 Jan 2014 11:04:43 -0500 (EST) In-Reply-To: <52C8DABC.4090503@yandex.ru> (Dmitry Gutov's message of "Sun, 05 Jan 2014 08:08:28 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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:167369 Archived-At: > a) `c-a-p-f' looks less accessible to the end user than `company-backends', That's because it's mostly not meant for the users to change, and that's because users should not need to touch it. `company-backends' in contrast contains a mishmash of things, 90% of which is irrelevant to any given situation. > The names of the c-a-p-functions used by e.g. IELM follow no > discernible convention. A good naming convention for them would be welcome, indeed. > b) There's no direct analog to "merged" Company backends in > completion-at-point-functions'. `company-backends' can contain list values, > and `company--multi-backend-adapter' handles the merging of the > returned data. Indeed, there's no such thing yet. Nothing prevents us from providing a "completion-at-point-merge-backends" function which takes a list of completion-at-point-functions and returns a new completion-at-point-function. company-backends and completion-at-point-functions don't work 100% identically, but the differences are present only because of history. If Company had started with completion-at-point-functions it would live very happily with it. Stefan