From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: use-package :after ?? Date: Fri, 12 May 2023 08:59:10 +0300 Message-ID: <83mt2a3xap.fsf@gnu.org> References: <83fs87c8wg.fsf@gnu.org> <831qjn75tw.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18362"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 12 07:58:35 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pxLnW-0004d0-T6 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 May 2023 07:58:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxLmz-0000Al-Rw; Fri, 12 May 2023 01:58:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxLmx-0000Ad-O7 for help-gnu-emacs@gnu.org; Fri, 12 May 2023 01:57:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxLmx-0007HN-F9 for help-gnu-emacs@gnu.org; Fri, 12 May 2023 01:57:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=h36TDah9QWg5edG7yVdI9XBPMy4Cnle11tMTyUqCCvw=; b=kWTplr4oxBpK cmPIjFFdFbyF+Crgog279M1RmtsAo94ns9cjgPK2PNTD3cndoCs4ifWxaJ7K/L2uAl8AHgs+IFO38 S21KelnYAAF5A6OQ3mn/gXDRvh50XIxpfBirsUXRvSSLPLgwokWOeBCZTLmZEoc0tdSDppejTdqtJ tjtiULOolF+rbSSte93K0/3r/qXhC93ZNNyKHbKp5YrixmPf+K4VdrYCObkA5oNPW++dyxjIu2RTa eGhlCc521XaDD27Gyz9CZP8pN7+f5iZd02qu46e+Y+E2HNohZksp3MhUKVI0l4e8qRbx+5lyC7su7 4xrmiSI9WBy+knxgpYaCew==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxLmw-00052a-VL for help-gnu-emacs@gnu.org; Fri, 12 May 2023 01:57:59 -0400 In-Reply-To: (message from David Masterson on Thu, 11 May 2023 14:24:08 -0700) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143564 Archived-At: > From: David Masterson > Cc: help-gnu-emacs@gnu.org > Date: Thu, 11 May 2023 14:24:08 -0700 > > Eli Zaretskii writes: > > > And why does it make thing more complicated? If package FOO should be > > loaded after BAR, and BAR should be loaded after BAZ, then the order > > I'd expect should be: BAZ, then BAR, then FOO. Right? > > Yes. Will that be handled properly by the following (with global > deferred loading)? > > (use-package foo :after bar > :config (foo-setup) > ) > (use-package bar :after baz > # :demand t > ) > (use-package baz) > > In particular, use-package will ensure foo-setup is called after foo is > loaded, right? If I uncommented the :demand, should/would that make a > difference? I don't think it would make a difference, but why on earth are you using :demand there? It makes no sense to me. In any case, if there's something unclear here, the problem might be with the description of :demand, not with :after -- the node "Forcing loading" says :demand is overridden by :defer, but says nothing about :after.