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.bugs Subject: bug#71356: use-package doesn't load org from elpa Date: Thu, 06 Jun 2024 18:19:29 +0300 Message-ID: <865xumgku6.fsf@gnu.org> References: <86plsvk57o.fsf@gnu.org> <86ed9aip6z.fsf@gnu.org> <87ed9abnqn.fsf@posteo.net> <868qziifzd.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30231"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71356@debbugs.gnu.org, philipk@posteo.net, acorallo@gnu.org To: Pedro Andres Aranda Gutierrez Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 17:20:18 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 1sFEuY-0007ez-5y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 17:20:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFEu5-0003TL-Rb; Thu, 06 Jun 2024 11:19:49 -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 1sFEu3-0003St-OI for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 11:19:47 -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 1sFEu3-0001vX-Fu for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 11:19:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFEuH-0001wW-Pr for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 11:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 15:20:01 +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.17176871967454 (code B ref 71356); Thu, 06 Jun 2024 15:20:01 +0000 Original-Received: (at 71356) by debbugs.gnu.org; 6 Jun 2024 15:19:56 +0000 Original-Received: from localhost ([127.0.0.1]:54214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFEuC-0001w9-Eb for submit@debbugs.gnu.org; Thu, 06 Jun 2024 11:19:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFEu7-0001vt-LF for 71356@debbugs.gnu.org; Thu, 06 Jun 2024 11:19:55 -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 1sFEtn-0001uI-A6; Thu, 06 Jun 2024 11:19:31 -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=z6BoZTWDhRy3NW9zMuXkqnojgNxY3W6WwCerES19P9Y=; b=e+PP8REmCmxg Vtr07OyRxC38HgHAn0fAzXswY+Qc2PYO5LohdFPjpRTHwC8yzyRnZbHtL3q7d1VbjEMn01EkuieOZ ccfKfEM4NVhYhd9AODmty80kcIOqeEqibMOJK80ghqoRCJ6HtTalZicLrpDqI92i7kClEcU+bsFrj Ki370E3QYYd4SK7bRXWHNpxJXtReeBAhBGisMyWqX+Szi2UPdKoax64tZXI4/TRxDZ2V6sfhjGAtj AFtq+e2k9y6DVMSxw5fVRSqzTLsudZF0Lm85oEc+lf+vqamLXQ3AdVNWjnLGcAeTtjRDGKX6sUiqX pXEpeKFzZ9InxK1m/lirrw==; In-Reply-To: (message from Pedro Andres Aranda Gutierrez on Thu, 6 Jun 2024 17:07:02 +0200) 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:286707 Archived-At: > From: Pedro Andres Aranda Gutierrez > Date: Thu, 6 Jun 2024 17:07:02 +0200 > Cc: Philip Kaludercic , acorallo@gnu.org, 71356@debbugs.gnu.org > > > IIUC the feature would be that if a use-package form has a > > > > :pin gnu > > > > argument, then this is an indication that we want to install the package > > from GNU ELPA, disregarding the fact that Emacs already has a built-in > > version of the same package. Sort of a package-local version of > > `package-install-upgrade-built-in'. > > I'm not sure. People tend to copy/paste recipes from the Internet > without really understanding what they do. I think a simple :pin > should not be sufficient, we need some specialized keyword (in > addition to supporting package-install-upgrade-built-in). > > I didn't arrive at trying :pin gnu from anything in the Internet, but from > reading the use-package documentation (just this time ;-) ) > > > I am not familiar with the use-package code, but it seems like we could > > implement this generally in package-install, by checking > > `package-pinned-packages'. > > I would prefer not to introduce another indication of whether built-in > packages should or should not be upgraded. If we do, we will next > need to decide which one "wins" when they contradict each other. > > > My feeling is that if I set package-install-upgrade-built-in to t and pin > a package to (say) gnu elpa, that should be enough. I agree. I was responding to the suggestion that just :pin should be enough. That use-package currently ignores package-install-upgrade-built-in is a bug we should surely fix.