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: Tue, 11 Jun 2024 07:27:39 +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> <865xug8zcf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cbac64061a96876c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5651"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71356@debbugs.gnu.org, philipk@posteo.net, acorallo@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 11 18:42:23 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 1sH4Zh-0001H0-Th for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jun 2024 18:42:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sH4ZS-0003uR-A1; Tue, 11 Jun 2024 12:42:06 -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 1sH4ZQ-0003tX-HD for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2024 12:42:04 -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 1sH4ZQ-0005o7-9R for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2024 12:42:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sH4ZO-00054m-Ig for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2024 12:42:02 -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: Tue, 11 Jun 2024 16:42:02 +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.171812408619451 (code B ref 71356); Tue, 11 Jun 2024 16:42:02 +0000 Original-Received: (at 71356) by debbugs.gnu.org; 11 Jun 2024 16:41:26 +0000 Original-Received: from localhost ([127.0.0.1]:36102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH4Yn-00053e-P6 for submit@debbugs.gnu.org; Tue, 11 Jun 2024 12:41:26 -0400 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:50632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sH4Yl-00053N-OF for 71356@debbugs.gnu.org; Tue, 11 Jun 2024 12:41:24 -0400 Original-Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42278f3aea4so2336225e9.1 for <71356@debbugs.gnu.org>; Tue, 11 Jun 2024 09:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718124019; x=1718728819; 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=yY3VdFc3pGVENQR1dBNDEEOhA8b0NG6g/DkVYaNMPp0=; b=AE8PUZaEsh99+Jmi40MbeaPsoRBMLnnrH8mlKytZZinnLadXd5qK5bhLiEqvH7fGn8 2VDXUiSZroyOn2Sp8PICmCwAKaO9gKb3JjPDqja6gTRX6ZwHtghS1qZOb1mcsm70Z25r JeXkko8hiEjSCnCXQUyJU/QLlsAp6XztA6ptKqgQ//GyERhheay7q+RdtADVOMeodgzu J9b961GA1RhFf0kopBRquGmaP/+W3R0IAPFj2jYa9iUbwmnLlisRB3S9QX7+QoS7wH+6 +Xgr/ffbI+1IWx/TxplKePE91V4aqnQjTxuEjvDAn/fHg+tSqzBzUb3Z3yJez4tvRqBj +2Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718124019; x=1718728819; 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=yY3VdFc3pGVENQR1dBNDEEOhA8b0NG6g/DkVYaNMPp0=; b=wVQUeHf21EpSYrT/sa8KxXkSKvQwOKNndyIhSMmts3xY9DTAPBTy2iEfOk1kXyLBQ1 F9cUjRHiqye8Qw0y4W6bJo5q+cc+F8ZHZt8wIQowqnUYqKsopxWFAYg6NPB9wFwmlp/9 yJ3cbYD3hGuNN+dvA7ZRvEFwTzcgRY+XS7h3dVeJIsBFwf2ySr1py6+Klm86sxwmH775 rF0XowDJizkCP9DNDoglg0PeNhpgkTnJuUSbpFXKURKnrSQqumEQmSb3ArzYmtvIsctQ 3xvVPKrHHuMWqTg/LH5eJu/87HVeTo6c8UCRfkmphKD9PfjQvbnZGj57i1lmfyfYrhQl qo2g== X-Forwarded-Encrypted: i=1; AJvYcCVijpjKWeCrcxlFLNR2hIeIvIJPZAeK9vKKuRwuTl8/EhmQpMcwDe4ei/rBugBZtUnVNpbQuUVJMA/DbdBiqv6gd1c2Sdc= X-Gm-Message-State: AOJu0YxQmafbn87UDOMzSLozgQDpuAPyomJTK1/o3tmIqqQe4S+XIIwU h1PdOTyWj/dEdLlkUyqHWEmlvnSbin6jGS+zqW0L/jt6+kk5tYX7s7An+LQgQSrFevdGNs7BH9W jlewQnbTKSIfGgQQDUAuPCFpdTxaqmzDv X-Google-Smtp-Source: AGHT+IF24cMPK4RsaxULqOW3ffDof2adg+KTOp/eGk2dX5+dX8ZiZNYkEQ52YpPfS1UPdwxwV3+aHt4ndoEaTxAaEKQ= X-Received: by 2002:a50:8e49:0:b0:57c:5cfc:3824 with SMTP id 4fb4d7f45d1cf-57c5cfc3bccmr6521983a12.8.1718083685950; Mon, 10 Jun 2024 22:28:05 -0700 (PDT) In-Reply-To: <865xug8zcf.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:287095 Archived-At: --000000000000cbac64061a96876c Content-Type: text/plain; charset="UTF-8" On Mon, 10 Jun 2024 at 19:47, Eli Zaretskii wrote: > > From: Pedro Andres Aranda Gutierrez > > Date: Mon, 10 Jun 2024 18:51:08 +0200 > > Cc: Philip Kaludercic , acorallo@gnu.org, > 71356@debbugs.gnu.org > > > > 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? > > Right. But AFAIU, that was not what Philip was proposing. If I > misunderstood, my apologies. > So, in this, we are in "violent agreement" :-) > > > 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)) > > No, you are supposed to customize that option if you want built-in > packages to be upgraded as the rest of them. You aren't supposed to > let-bind user options. > Ahh, OK. I was just trying to sketch a test case. So the thing would be: (custom-set-variables '(package-install-upgrade-built-in t)) (use-package org :ensure t :pin gnu) ;; to upgrade from elpa :init (message "org-version: %s" org-version)) (use-package eglot :ensure t :: just to configure and initialise the built-in package :init (message "init eglot")) Is that what you mean? -- 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 --000000000000cbac64061a96876c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, 10 Jun 2024 at 19:47, Eli Zar= etskii <eliz@gnu.org> wrote:
<= /div>
> From: Pedro And= res Aranda Gutierrez <paaguti@gmail.com>
> Date: Mon, 10 Jun 2024 18:51:08 +0200
> Cc: Philip Kaludercic <philipk@posteo.net>, acorallo@gnu.org, 71356@debbugs.gnu.org
>
> 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?

Right.=C2=A0 But AFAIU, that was not what Philip was proposing.=C2=A0 If I<= br> misunderstood, my apologies.

So, in thi= s, we are in "violent agreement" :-)=C2=A0

> So the sketch that actually loads org from elpa would be
>
> (let ((package-install-upgrade-built-in t))
>=C2=A0 =C2=A0(use-package org
>=C2=A0 =C2=A0 =C2=A0:ensure t :pin gnu))

No, you are supposed to customize that option if you want built-in
packages to be upgraded as the rest of them.=C2=A0 You aren't supposed = to
let-bind user options.
=C2=A0
Ahh, OK. I wa= s just trying to sketch a test case. So the thing would be:

<= div>(custom-set-variables '(package-install-upgrade-built-in t))
<= div>(use-package org
=C2=A0 :ensure t :pin gnu) ;; to upgrade fro= m elpa
=C2=A0 :init (message "org-version: %s" org-vers= ion))
(use-package eglot
=C2=A0:ensure t :: just to con= figure and initialise the built-in package
=C2=A0:init (message &= quot;init eglot"))

Is that what you mean?

--
=
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 WA= RNING juju.worker.uniter.operation we should run a leader-deposed hook here= , but we can't yet

--000000000000cbac64061a96876c--