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: Split off some backends from Company? Date: Thu, 14 Aug 2014 08:23:03 +0400 Message-ID: <53EC39A7.2060806@yandex.ru> References: <53E917A2.2080409@yandex.ru> <53EAC60F.6030104@yandex.ru> <53EC1CF2.3050904@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1407990216 3450 80.91.229.3 (14 Aug 2014 04:23:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 04:23:36 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 14 06:23:30 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 1XHmZV-0001Rz-9C for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2014 06:23:29 +0200 Original-Received: from localhost ([::1]:51830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHmZU-0002qK-MH for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2014 00:23:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHmZI-0002pv-SZ for emacs-devel@gnu.org; Thu, 14 Aug 2014 00:23:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHmZ9-0005mF-RJ for emacs-devel@gnu.org; Thu, 14 Aug 2014 00:23:16 -0400 Original-Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:40921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHmZ9-0005m4-JT for emacs-devel@gnu.org; Thu, 14 Aug 2014 00:23:07 -0400 Original-Received: by mail-la0-f47.google.com with SMTP id mc6so529167lab.6 for ; Wed, 13 Aug 2014 21:23:06 -0700 (PDT) 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=B2oRZH2sntV/jqCviZ5tykkb5xF1G1HdJjMGyAhYeQ8=; b=xAekHsFwfOEKOZfTq5dIDK2WNSIT0npA832eqNVJHID0x/UcPVUbab5AQwRtPRZEjY Yzmh2AFPQ7v2bcMMUjzFGMZnpf8hsvFNezJS2mJJeYex8DwvOWjC7ZGvjUDznR446Rcr 9xiFdNCl50S8A0rA9b5qdv5t9TVwtFAbqme5lS4NKBXl31K0GJE82rp+8ZOE+ZjmnVH1 Kd+SHX8T4HIJnh9va9vmQFm0E3pYvAJGgcmqMTi1Xgn9Vsi2WlYvlu8BDF/Xx6SLREB8 /lYvTHA8sfrXd7Widd+Bs8PCYz59Rd8Gf2zCBhwOYRLXzbY0T35lb4TF+RckWl63MOrZ 75Bg== X-Received: by 10.152.216.228 with SMTP id ot4mr2045817lac.40.1407990186186; Wed, 13 Aug 2014 21:23:06 -0700 (PDT) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id g7sm2369093laa.35.2014.08.13.21.23.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Aug 2014 21:23:05 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22f 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:173653 Archived-At: On 08/14/2014 07:07 AM, Stefan Monnier wrote: >>> I see what you mean, but why does this need another package? >>> It seems the code could/should be in yasnippet, controlled by >>> something like a minor-mode. >> It could be in yasnippet, but then it would implicitly depend on Company >> anyway. > > You mean it can't be a completion-at-point-function? Not a useful one, no. Like mentioned, company-yasnippet's candidates list not exhaustive (in terms of things, in general, that the user would usually want to see completed), so it's won't be a good completion function by itself. >> Further, there is a convention in the third-party developer community of not >> doing too much in autoloads ("installing the package shouldn't turn it on", >> or something along these lines). > > That's true as well. Of course "turn it on" is not always as clear-cut > as it sounds. Adding oneself to company-backend might be seen as "turn > it on", but if you consider that it's only actually used if you do > enable company and if you use the appropriate major mode (or compiler > backend, or snippet library, ...), then you may decide that it's not > really "turned on". Ok, that makes sense. But anyway, the above convention is only a secondary consideration, as far as I'm concerned. > To the extent that ELPA packages are normally installed by the end user > (my install.el package distinguished "system install" from "user > install" but package.el doesn't really provide much support for > system-wide installs, thjo it doesn't actively prevent them), I think > it's not that bad if installing a package also turns it on. Agreed.