From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Edward Knyshov Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Fri, 14 Aug 2015 06:47:51 +0000 Message-ID: References: <87d1yufwjk.fsf@robertthorpeconsulting.com> <87k2t1o8iz.fsf@russet.org.uk> <55CD78A9.1050309@gmail.com> <55CD8A7A.3090801@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1439534895 2872 80.91.229.3 (14 Aug 2015 06:48:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2015 06:48:15 +0000 (UTC) To: Nikolay Kudryavtsev , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 14 08:48:15 2015 Return-path: Envelope-to: geh-help-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 1ZQ8mj-0006Pl-Lz for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2015 08:48:13 +0200 Original-Received: from localhost ([::1]:45034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ8mj-00075k-0y for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2015 02:48:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ8mY-00075f-Uy for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 02:48:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQ8mX-0005C4-TM for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 02:48:02 -0400 Original-Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:33530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ8mX-0005AK-FP for help-gnu-emacs@gnu.org; Fri, 14 Aug 2015 02:48:01 -0400 Original-Received: by lbbsx3 with SMTP id sx3so39958579lbb.0 for ; Thu, 13 Aug 2015 23:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=VSaiGnLI8hkzAuT6X6UykiKkeEBbvJdyvctvcfwUuF4=; b=C2xuznkrNjXKbNPKU2Z8Ry3sq6EvSFopgk0xG56BtjTOdKPUwaKVIjKWjlfHImYnwh XkqJlU/XgXgRDqJ2DUQxlZScSC6YEs4/3e+PRY0DM4zbAZwi5W5WPSxNfBD3ABRUwg5q j8MGnUPKau46bW8YH20TL/Ek7qaJWCpsM6HR90ngPaIdohWL2AEJLbrob3WWuO2KJHni 4bFgJh8+UgBWfakY7Q3mMNGlUOJ1j+j3ym8wAxeRDi+Z2XTPr6Kvd11SFkjHNDiDU6yd TG8OGZDR73QVJ6hLH8/7+ySlA15SsZMop/AzdDRBmCHlxpFkLvbcHZmjy3rkV/BahM3Q vRjA== X-Received: by 10.112.156.168 with SMTP id wf8mr41422234lbb.114.1439534880599; Thu, 13 Aug 2015 23:48:00 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106574 Archived-At: If you have many packages depending on company, your multi-package form may become very big and complex. On Fri, Aug 14, 2015 at 9:46 AM Edward Knyshov wrote: > So if we do not use cider, we still can use company in some other modes, > because they also could :require company > > On Fri, Aug 14, 2015 at 9:44 AM Edward Knyshov wrote: > >> From my point of view cider couldn't be configured without company mode, >> because some features lays on it, but company could. >> That's why company is dependency of cider in this example. That's why >> company is single req-package form and cider is dependent form. >> >> On Fri, Aug 14, 2015 at 9:28 AM Nikolay Kudryavtsev < >> nikolay.kudryavtsev@gmail.com> wrote: >> >>> Hello Edward. >>> >>> It's not about the practical problem of setting up cider and company. >>> Its about the generic problem of which cider and company is just one >>> example. >>> >>> Req-package makes our configuration for cider depend on our >>> configuration for company-mode. This is a working solution in practice, >>> but to me it seems wrong from a theoretical standpoint, since it mingles >>> too much together. The original reasoning for use-package is separating >>> package configurations into separate forms for every single package. But >>> cases like this create multi-package forms, since our configuration for >>> cider also sets up some stuff for company mode. A better (theoretical) >>> solution is to have another macro specifically for situations like this. >>> >>> -- >>> Best Regards, >>> Nikolay Kudryavtsev >>> >>>