From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: enabling company-capf support in cfengine.el Date: Thu, 16 Jan 2014 19:39:44 +0200 Message-ID: <52D81960.2080408@yandex.ru> References: <87fvqtg02v.fsf@flea.lifelogs.com> <87zjnyxdpb.fsf@uwakimon.sk.tsukuba.ac.jp> <87k3f2j7xv.fsf@flea.lifelogs.com> <2518D79A-B9E4-45DF-A403-8330145DFD17@gmail.com> <87eh58j0x3.fsf@flea.lifelogs.com> <878uvg4ul2.fsf@yandex.ru> <87y53ghe94.fsf@flea.lifelogs.com> <87vbyk3497.fsf@yandex.ru> <87haa4gw69.fsf@flea.lifelogs.com> <87txe4usm1.fsf@yandex.ru> <87zjnvg2t2.fsf@flea.lifelogs.com> <87txe364q0.fsf@yandex.ru> <87r497fu0h.fsf@flea.lifelogs.com> <87haa1litl.fsf@yandex.ru> <87y53czx7e.fsf@yandex.ru> <87bo08bivm.fsf_-_@flea.lifelogs.com> <87sitkzahs.fsf@yandex.ru> <52D7DAAB.2070709@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389894007 15429 80.91.229.3 (16 Jan 2014 17:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2014 17:40:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 16 18:40:14 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 1W3qvO-0006HB-2C for ged-emacs-devel@m.gmane.org; Thu, 16 Jan 2014 18:40:14 +0100 Original-Received: from localhost ([::1]:34159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3qvN-00076L-Kj for ged-emacs-devel@m.gmane.org; Thu, 16 Jan 2014 12:40:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3qvC-00075u-VG for emacs-devel@gnu.org; Thu, 16 Jan 2014 12:40:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3qv1-0007z5-65 for emacs-devel@gnu.org; Thu, 16 Jan 2014 12:40:02 -0500 Original-Received: from mail-ee0-x22b.google.com ([2a00:1450:4013:c00::22b]:52007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3qv0-0007yp-Si for emacs-devel@gnu.org; Thu, 16 Jan 2014 12:39:51 -0500 Original-Received: by mail-ee0-f43.google.com with SMTP id c41so1668427eek.16 for ; Thu, 16 Jan 2014 09:39:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=PdxTFJhw8Qee4UzrxDLTcDJAQfa9HMhD1fnIZocOiws=; b=DFI8PS3CbD44+qA25ucd5GQC1Le/FKr9T/UmarUtOzd9uwHNcNPRW3ue+zJnFd55BV KGSQ66qadAMVy00ZjmBbL/2NQ0xB/XBlDV25HMwety0dHdRZyagwXiibidRQKtkZQo+1 lX+z7x2ifMk7kPef3zQEPnoMfBefzwgaAJ1OCTA44XcvyF+bCkBpZry/u1rple90y6TB WGPTyzCf2j/Di1JBzbdGL0yVC8IAQIuB7AF/uoGYlE3PVPUAgO5MstGgOedTjenwY6uh jHsmc6D2dTTjDd/17Z+xP0+TcFWUsKWcWBzxh6lWy599KLbzDfISf/Mmyr+UMz3wjmMC vMnw== X-Received: by 10.14.213.8 with SMTP id z8mr222948eeo.110.1389893989850; Thu, 16 Jan 2014 09:39:49 -0800 (PST) Original-Received: from [192.168.0.94] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id m1sm19955138eeg.0.2014.01.16.09.39.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Jan 2014 09:39:47 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22b 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:168546 Archived-At: On 16.01.2014 18:06, Stefan Monnier wrote: > I don't see why you wouldn't want to include it for Emacs-24.1 already. > I do understand why you would prefer keeping company-elisp for <=24.3, > but AFAIK company-capf works well in 24.1. Mostly simplicity, one less version check. And I don't really consider completion functions without :company- properties as viable substitutes for Company backends. And many of them still behave inappropriately, like `semantic-ia-complete-symbol' and `nxml-complete'. > BTW, the next step would be to supplant other company backends, like > we've done with company-elisp: company-css, company-nxml, and > company-semantic look like prime candidates. Indeed. Although I'm not sure what would be an appropriate counterpart in CAPF for `company-semantic--pre-prefix-length'. With Semantic, we also have the question of alternatives. At the moment, `company-semantic' goes before `company-clang', so that if semantic-mode is enabled, the former is used, and otherwise, the latter. If we remove `company-semantic' from the list (and keep `company-capf' after the more specific backends), `company-clang' will have precedence and will get enabled by default whenever `clang' is present in the system.