From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Newsgroups: gmane.emacs.devel Subject: Re: use-package.el -> Emacs core Date: Tue, 10 Nov 2015 09:45:50 +0000 Message-ID: References: <564136F7.2020404@yandex.ru> <87mvum1bbg.fsf@pedrosilva.pt> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447148799 6092 80.91.229.3 (10 Nov 2015 09:46:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2015 09:46:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Pedro Silva Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 10 10:46:34 2015 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 1Zw5VQ-0003cZ-3W for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2015 10:46:24 +0100 Original-Received: from localhost ([::1]:58489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw5VK-0001Go-US for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2015 04:46:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw5V0-0001EY-1e for emacs-devel@gnu.org; Tue, 10 Nov 2015 04:45:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zw5Uw-0002XU-Nz for emacs-devel@gnu.org; Tue, 10 Nov 2015 04:45:57 -0500 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:37449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw5Uw-0002XG-Gx for emacs-devel@gnu.org; Tue, 10 Nov 2015 04:45:54 -0500 Original-Received: by wmww144 with SMTP id w144so67631124wmw.0 for ; Tue, 10 Nov 2015 01:45:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=eyaVTmrwvIzWVz/k3IYhTG70MW0NP4XEZ8Ws8OuzZvs=; b=GIfttuAgl43BPE/Rr5S6iwnptHhrDrcRNWUA5tNKtls+ZfHK5Y2mO5WcM8ycRceaW6 O7SlbIC6BpLl3VAOnNBBwd9nwHX9S8swWCHcBj1PzyC65z91VmSvLtCkh+cprb31K6zZ usT5eGcpCYQE9u1OYeIP3U84Y9ZVOFA408+JvkeuDwB+h3es9k/B2Qyoi2hw521irGV0 vKajJvxziyzZw5rGOQyqvXbV+IZxAyS7EKeiDIaBefrZPtXJJodHXKOmSqccXu3fnP98 Z41YzTRGG+jNOgiE/FUFSbfPvUNmE6AEneXz5I9OW1c8ChoI8/vfsCeoPJb6UjVLJpNs wl6g== X-Received: by 10.28.8.205 with SMTP id 196mr32980883wmi.50.1447148753967; Tue, 10 Nov 2015 01:45:53 -0800 (PST) Original-Received: from king.yourcompany.com (31.57.37.188.rev.vodafone.pt. [188.37.57.31]) by smtp.gmail.com with ESMTPSA id y77sm18800135wme.15.2015.11.10.01.45.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2015 01:45:53 -0800 (PST) In-Reply-To: <87mvum1bbg.fsf@pedrosilva.pt> (Pedro Silva's message of "Tue, 10 Nov 2015 09:57:23 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c09::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:193831 Archived-At: Pedro Silva writes: > :ensure (automatic ELPA installation), :defer (lazy loading) and > :commands (autoloading) are the things I most use in `use-package' > that are not as easy to achieve with `with-eval-after-load'. Not as easy? Sure, more characters, but basically the same complexity. I don't think it's worth a whole new language to be able to replace: (package-install 'foo) with :ensure t and (autoload 'foo-bar 'foo) (autoload 'foo-baz 'foo) with :commands (foo-bar foo-baz) or even=20 (run-with-idle-timer 5 nil 'require 'foo) with :defer 5 Especially given that the use-package versions force the reader (or the grepper) to look around for context, while the regular versions don't. But perhaps I'm misinterpreting what these directives actually do, or perhaps you can illustrate with some snippets of your own. Jo=C3=A3o