From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.bugs Subject: bug#71356: use-package doesn't load org from elpa Date: Mon, 10 Jun 2024 18:51:08 +0200 Message-ID: References: <86plsvk57o.fsf@gnu.org> <86ed9aip6z.fsf@gnu.org> <87ed9abnqn.fsf@posteo.net> <868qziifzd.fsf@gnu.org> <87msnt1gkf.fsf@posteo.net> <86y17d7zzm.fsf@gnu.org> <877cew24c5.fsf@posteo.net> <86cyoo93pw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000450030061a8bf6b2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18534"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71356@debbugs.gnu.org, Philip Kaludercic , acorallo@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 10 19:11:27 2024 Return-path: Envelope-to: geb-bug-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 1sGiYI-0004Wm-On for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jun 2024 19:11:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGiXo-0002Nq-HQ; Mon, 10 Jun 2024 13:10:58 -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 1sGiXe-0002Mk-Mh for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 13:10:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGiXe-0000Xj-DJ for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 13:10:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sGiXv-0006em-EJ for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 13:11:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pedro Andres Aranda Gutierrez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jun 2024 17:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71356 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71356-submit@debbugs.gnu.org id=B71356.171803942525400 (code B ref 71356); Mon, 10 Jun 2024 17:11:03 +0000 Original-Received: (at 71356) by debbugs.gnu.org; 10 Jun 2024 17:10:25 +0000 Original-Received: from localhost ([127.0.0.1]:47337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGiXI-0006bZ-IZ for submit@debbugs.gnu.org; Mon, 10 Jun 2024 13:10:25 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:51265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGiNx-00066U-DR for 71356@debbugs.gnu.org; Mon, 10 Jun 2024 13:00:46 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-35f1691b18fso1791780f8f.2 for <71356@debbugs.gnu.org>; Mon, 10 Jun 2024 10:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718038762; x=1718643562; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=czlrf9b5I6uS9xq3n0n8Zsf5HAaDMklm4zKsVRT0YPM=; b=mFxDWbAH1DMHZzeWliJ56RQlhJcamUCMPzImdkcFExOgtcQ4LOHC5eOLbPwusA2AK/ 6cnpxTExSn0PK3+ZR0UQ49Iwr8vuouSap8EjgPZgZiBzMDVxUv3WWQ3ILcGeS5QLZUog LfVROGYp490eyu75LUeoL+qSUypw5TQePcl9DN1cMv29Y51JJ/eRHa+L034OZG5eYIya WrltT9p8VILAXwkKKHqtjcsaMivhiVDBA4qPzkX+gl0WP791MJI1GDGPkj/NRyNKpmfw 47/rWuBvaKMjMFlH+zMdGZ2bNLrGvHw7RqT59CK9vTaWuPk1FYT4BWt2G6m6pCb1ta2h QQoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718038762; x=1718643562; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=czlrf9b5I6uS9xq3n0n8Zsf5HAaDMklm4zKsVRT0YPM=; b=J2zW22nhgdKKILkVVm22pTRlaIJG+5eX4AzlrDwSfGR0cNa6I4pKwnpEdr+y52hO1z f94KzklLiWiY1qUMWyPcgpmotkJ13NyFaFycM21p85UXZ/MfFWHUr9mTPQ6uoykJRuDO 2Jw1ymT2/aHIdnfRcCp960FAvQBhZOMxjQAaOPNLnH7Gmq0NafYpRZVy0J0wa9qIkuSl qCxbAppv9vvivSWMQkTyX2FsNjke91qze5UT53lbJ3kVctTwhWZiqt771A5SOksn1x9v 02BAKbQv3r6mp7+XsUYdFXBC8G9Xa9UnZR0mh5FTwB6amquvPrKEFy6ntNJ3Uf5RlBQs oIvw== X-Forwarded-Encrypted: i=1; AJvYcCWKSeujpM1VbYcmW8YYkyowTjBJ8ov9MIiOMRq/84JfCkl41r4mcfPL9cGlzCOE+4FlqQrsdwNMaqHHkbP56p7GDUbXhr8= X-Gm-Message-State: AOJu0YynCA4DrGQtdJgk5SCb7q/C9ue8yAe0+3sgVYYqGl0EBfAJ8HPA /f5OcVgIUl12j1jQdiJPQrfqjY+4JQ7qrsH54NGVG69mXfp36lJHNZuMwtAvGAILSlbBgZ/8XlP qOrjmP2zu18r4BIn35lVvA0Tq4U4Ej/EuSrc= X-Google-Smtp-Source: AGHT+IFfyRRUsBFdn8u1KrXayl5QmE3RjCMMSoSlKVyzeGiw+OcM5gthCWovj5nCxY+4zYeHRrJlu7djnFS4nAjKmP0= X-Received: by 2002:a50:8ad3:0:b0:57c:61a2:ed47 with SMTP id 4fb4d7f45d1cf-57c61a2eee4mr4921867a12.24.1718038294755; Mon, 10 Jun 2024 09:51:34 -0700 (PDT) In-Reply-To: <86cyoo93pw.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287057 Archived-At: --000000000000450030061a8bf6b2 Content-Type: text/plain; charset="UTF-8" We don't want to change what :pin means, IMHO we need it to obey `package-install-upgrade-built-in`. That wouldn't be incompatible, right? So the sketch that actually loads org from elpa would be (let ((package-install-upgrade-built-in t)) (use-package org :ensure t :pin gnu)) whereas (use-package org :ensure t :pin gnu) would keep the original org packaged with emacs (called with emacs -Q) Best, /PA On Mon, 10 Jun 2024 at 18:12, Eli Zaretskii wrote: > > From: Philip Kaludercic > > Cc: Andrea Corallo , paaguti@gmail.com, > > 71356@debbugs.gnu.org > > Date: Mon, 10 Jun 2024 15:40:58 +0000 > > > > >> > To me :pin would make perfect sense, as it explicitly expresses what > > >> > archive we want to follow for package upgrades. > > >> > > >> +1, also use-package interface is very declarative and I'm not sure > > >> having it influenced by a dynamic var would match user expected > > >> behavior. > > > > > > If you prefer, we could add a new :foo keyword to mean this. But > > > unconditionally changing what :pin means in these cases is out of the > > > question. > > > > We wouldn't change what :pin means directly, but just have > > package-install respect `package-pinned-packages'. > > How is that different? It's an incompatible change of behavior, and I > cannot agree to that, sorry. > -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000450030061a8bf6b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
We don't want to change what=C2=A0:pin means, IMHO we = need it to obey `package-install-upgrade-built-in`.
That wouldn't b= e incompatible, right?

So the sketch that actually= loads org from elpa would be

(let ((package-insta= ll-upgrade-built-in t))
=C2=A0 (use-package org
=C2=A0 =C2=A0 = :ensure t :pin gnu))

whereas

=C2=A0 (use-package org
=C2=A0 =C2=A0 :ensure t = :pin gnu)

would keep the original org pa= ckaged with emacs (called with emacs -Q)

Best, /PA=


On Mon, 10 Jun 2024 at 18:12, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Philip Kaludercic <philipk@posteo.net&= gt;
> Cc: Andrea Corallo <acorallo@gnu.org>,=C2=A0 paaguti@gmail.com,
>=C2=A0 =C2=A071356@debbugs.gnu.org
> Date: Mon, 10 Jun 2024 15:40:58 +0000
>
> >> > To me :pin would make perfect sense, as it explicitly ex= presses what
> >> > archive we want to follow for package upgrades.
> >>
> >> +1, also use-package interface is very declarative and I'= m not sure
> >> having it influenced by a dynamic var would match user expect= ed
> >> behavior.
> >
> > If you prefer, we could add a new :foo keyword to mean this.=C2= =A0 But
> > unconditionally changing what :pin means in these cases is out of= the
> > question.
>
> We wouldn't change what :pin means directly, but just have
> package-install respect `package-pinned-packages'.

How is that different?=C2=A0 It's an incompatible change of behavior, a= nd I
cannot agree to that, sorry.


--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet

--000000000000450030061a8bf6b2--