From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#62720: 29.0.60; Not easy at all to upgrade :core packages like Eglot Date: Wed, 12 Apr 2023 12:00:04 +0100 Message-ID: <87zg7djrgr.fsf@gmail.com> References: <87a5zj2vfo.fsf@gmail.com> <87wn2modrm.fsf@posteo.net> <87ile6o2ov.fsf@posteo.net> <87y1mz38rl.fsf@posteo.net> <87ile2n0kn.fsf@gmail.com> <83v8i2abqi.fsf@gnu.org> <87wn2ilgx7.fsf@gmail.com> <83a5ze9uc1.fsf@gnu.org> <831qkq9rpy.fsf@gnu.org> <83pm898xb9.fsf@gnu.org> <87h6tlleg0.fsf@gmail.com> <8335558qc7.fsf@gnu.org> <83sfd5761f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1143"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: larsi@gnus.org, 62720@debbugs.gnu.org, philipk@posteo.net, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 12 12:59:44 2023 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 1pmYCW-00007H-H4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 12:59:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmYBs-0000gz-HS; Wed, 12 Apr 2023 06:59:04 -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 1pmYBq-0000gN-Gy for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 06:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmYBq-0001B8-6h for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 06:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmYBp-0002TJ-Jx for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 06:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Apr 2023 10:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62720 X-GNU-PR-Package: emacs Original-Received: via spool by 62720-submit@debbugs.gnu.org id=B62720.16812970909434 (code B ref 62720); Wed, 12 Apr 2023 10:59:01 +0000 Original-Received: (at 62720) by debbugs.gnu.org; 12 Apr 2023 10:58:10 +0000 Original-Received: from localhost ([127.0.0.1]:39152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmYAz-0002S6-Ot for submit@debbugs.gnu.org; Wed, 12 Apr 2023 06:58:10 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:35411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmYAw-0002RY-53 for 62720@debbugs.gnu.org; Wed, 12 Apr 2023 06:58:08 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id v14-20020a05600c470e00b003f06520825fso11328342wmo.0 for <62720@debbugs.gnu.org>; Wed, 12 Apr 2023 03:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681297080; x=1683889080; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rpuuyDQYfXqWzLVKz5Nha0pJYuQQC3BPi1nz9TeigJQ=; b=M1kipPA5nVQ70AIblppN8hUhH6Q+obUHoCICdzdGMk8L0KAgeJ0iI13QVraHLxVqnS txGKUcz2YMsZAvydL3u+WsxgM+MfdAux9NAGK7JdMDrNpRPk6rUE/LKDGB7MxxvTcHPf lsgrU+FYjj71IV+6Poom3lIz4D2bUdBYhvIZobbr6eji1qAGu181Jc5YlS8phNvuyIoa YXS7UtjDrS4at+mQ2Leo4hk5v6hvkbfO6p1LdEWhP5LkGoPY1a1Ktbu3bTMlot1q3IIN fU61r8J41UqiyaprQdjM/1BgBLPYMW2mq5nryYE04PNSJRr2XXhMwQXJNOjTjv0bO00M AXYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681297080; x=1683889080; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=rpuuyDQYfXqWzLVKz5Nha0pJYuQQC3BPi1nz9TeigJQ=; b=0kvWHjk/AO3MR/iNUeujRI8mz2LfdtfcUfx+EN5AfOA1QpIuVA2NS8JycEMtIdDIFm yDqP7DuD6TJaWX0YzIgMZBk2nxvdXBU8PPljO7g1YodZcd5j36O/Voj8xnswyAsHS7MY uzXW2VGIeiO8cEfCuxjslGcF+hkIyS6zGsFqKssm6W6WImqyXDX7xz09vmZAujwZqTTv 66fk5pzQmSs9bm67noc39OfYqlf9xPE88n5mjUEr7yHYeE0jCSQEbsCj+McxW64lhrqp pk+bhycaow4FjjfBTQEatZMHmFYXv2Y9sF9jjOjzp9IM7hWjCvDUYqViNh0PaWSzF3e4 2yCA== X-Gm-Message-State: AAQBX9em+MP1EUf7qdLxTfBDynD8G9NfFXdJr5FE58l8spXfP/8MXoXN TSfxp7/oeXcktxSi06mW88c= X-Google-Smtp-Source: AKy350a2OqFtXgz2i3dlENIpVaB142ABTj5pQ9wk3RgninQv5/uMO4vzZDBhj63KPZ7x4aGliOHuqw== X-Received: by 2002:a7b:cd0b:0:b0:3ef:7584:9896 with SMTP id f11-20020a7bcd0b000000b003ef75849896mr1696386wmj.26.1681297080007; Wed, 12 Apr 2023 03:58:00 -0700 (PDT) Original-Received: from krug ([87.196.73.56]) by smtp.gmail.com with ESMTPSA id p4-20020a1c7404000000b003ee44b2effasm1974037wmc.12.2023.04.12.03.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 03:57:59 -0700 (PDT) In-Reply-To: <83sfd5761f.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Apr 2023 13:23:40 +0300") 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:259721 Archived-At: Eli Zaretskii writes: > the restrictions. What else can I say to express clearly that I would > like such a command to not be installed? Had another idea: what about this very tiny patch, then? It makes `M-x package-install` work for installing a :core package. This also rhymes exactly with Stefan's intution/feeling that :core packages need to be "installed" to promote them to installable. The current M-x package-install recommendation could remain flawlessly and then you can do whatever you think is best for M-x package-update & friends. diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index f92afe56b76..134505a96af 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2164,8 +2164,10 @@ package-installed-p (and pkg-descs (version-list-<=3D min-version (package-desc-version (car pkg-descs))))) - ;; Also check built-in packages. - (package-built-in-p package min-version))))) + ;; Also check built-in packages. But if min-version is nil, just + ;; act as if a package-desc had been passed (bug#62720) + (and min-version (package-built-in-p package min-version)))))) =20 (defun package-download-transaction (packages) "Download and install all the packages in PACKAGES. Jo=C3=A3o