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: req-package Date: Thu, 13 Aug 2015 20:27:07 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1439497653 31835 80.91.229.3 (13 Aug 2015 20:27:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2015 20:27:33 +0000 (UTC) Cc: help-gnu-emacs To: Alexander Shukaev , Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 13 22:27:32 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 1ZPz64-0007a2-1C for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2015 22:27:32 +0200 Original-Received: from localhost ([::1]:44041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPz63-0006EG-0K for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2015 16:27:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPz5r-00069p-MH for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 16:27:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPz5q-0004Lf-Kr for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 16:27:19 -0400 Original-Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:35288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPz5q-0004LT-7I for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 16:27:18 -0400 Original-Received: by lahi9 with SMTP id i9so32526409lah.2 for ; Thu, 13 Aug 2015 13:27:17 -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 :cc:content-type; bh=Q33sn5lRi/e3u2N5Hsn8yDvY8wKEplmsM7jsX7UQJAI=; b=kGhqluewrCSUKpTYt38xKr3ww/5iLTs2aZewKCeXRFHlKKHOsq/p+4ojMJZ0+fKs/h m4S330h6IpPYRrqvJi0FH1i7xS/tPffYWllwb6A/Qsfp6mS8C7ThgewZkv/VX8w2Csno Y5G9NbKKvHvnQVoDV5qcB+cRZMFK2OT2lIlAQPzwq7G0el9H82mAjP8d1oZbEV+/9eJT 2y1cKXbsVo2qkjkCpvjhhuGgcWl9FT9GNSJyqcRPCcuR+kj0c9UhfA7UwLMf2PFnnsLC YINJtL75H6WvAfLoNjM/xnGAZH0ZT4HCKAGhytL19jtZ14dn0Uxlpf4YqlSm5ay1MmDV NYVg== X-Received: by 10.112.156.168 with SMTP id wf8mr38572851lbb.114.1439497637343; Thu, 13 Aug 2015 13:27:17 -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:c03::22d 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:106550 Archived-At: Alexander, the answer to your a-b question is yes, req-package manages it. That's the main idea. You do not need to rearrange your code. On Thu, Aug 13, 2015 at 7:37 PM Alexander Shukaev wrote: > >> Consider my previous one: > >> (use-package recentf > >> :defer > >> :commands > >> (recentf-mode) > >> :config > >> (with-eval-after-load 'evil > >> (evil-make-overriding-map recentf-dialog-mode-map 'motion) > >> (evil-set-initial-state 'recentf-dialog-mode 'motion) > >> (evil-ex-define-cmd "rfm[enu]" #'recentf-open-files))) > > > > Can you explain what' are the issues here? > > > > I guess one issue is with > > > > (evil-make-overriding-map recentf-dialog-mode-map 'motion) > > > > since this can only be used after both recentf and evil are loaded. > > But I don't see where use-package req-package helps you with this > > problem (which you instead solve with with-eval-after-load, IIUC). > > > > Can you clarify? > > Right now, `use-package' is nothing more, but a convenient way to > structure configurations of packages, especially in terms of autoloads > and deferring. Yes, right now it's more cosmetics and sugar, rather > than something that one cannot live without. Still, I think there > were plenty of good examples in another thread (with the `:mode' > keyword, for instance). > > In this thread, however, we want to go deeper and discuss package > "configuration-time" dependencies (which are not covered by > `use-package' by default), and `req-package' offers some features in > this regard, though I still don't quite understand them > comprehensively. The biggest issue, that is not solved anywhere > (neither vanilla Emacs nor `use-package' provide facilities for this) > out of the box, is the one that I described two posts earlier with the > example on `a' and `b'. Did you understand the issue? If > `req-package' solves it, then this might be a good step forward in > evolving `use-package' and making it a "really" handy tool for > managing complex configurations. > >