From unknown Sat Jun 21 10:39:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28897: 25.2.50; Document significance of package-archive-priorities Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Oct 2017 23:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28897 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28897@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150837045531781 (code B ref -1); Wed, 18 Oct 2017 23:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Oct 2017 23:47:35 +0000 Received: from localhost ([127.0.0.1]:48881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4y3j-0008GX-Gr for submit@debbugs.gnu.org; Wed, 18 Oct 2017 19:47:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4y3i-0008GI-HK for submit@debbugs.gnu.org; Wed, 18 Oct 2017 19:47:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4y3c-000889-Mf for submit@debbugs.gnu.org; Wed, 18 Oct 2017 19:47:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39803) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e4y3c-000885-Jd for submit@debbugs.gnu.org; Wed, 18 Oct 2017 19:47:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4y3a-0005Xk-F0 for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 19:47:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4y3Z-000869-Od for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 19:47:26 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:49885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4y3Z-00085j-JZ for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 19:47:25 -0400 Received: by mail-qk0-x241.google.com with SMTP id q83so8385721qke.6 for ; Wed, 18 Oct 2017 16:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=HCcsiJKoYxiUaeTMlYuox0p5YPFh+/DhHzracJKGVIQ=; b=b9wD4mb2tMQGE/6OhtUIHGrraZGOmF2ibo41alwEgFdp2CFmFYfH/iP4Be5xzdW+yT YcIW0UGN3omfcF6o7Qf7ZIHzzO7iNK5sWq6GsnmBjzvp3iXIp6uVDPoi0ZgxORNUbgVI SrQk+gUOPCelIQ2oXFXO4jiEXXk3jzfIk3+bbUI8sKfObAC4s+teBFMjrelQE8Rue8dY /7erw8aX+o/fMoUscRWb5ZHIFSJYCIUal2dpiBW7kuOCrHip60HGPOgeweCNnwqxglPN BXRYrrhgyvbp3uM+jMcy6lcKVJgBqY7WA3o9axvw3O1hwD/hw+SEku1Jzb+et7p90qtr K8XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HCcsiJKoYxiUaeTMlYuox0p5YPFh+/DhHzracJKGVIQ=; b=I4RdDLrqZOEZhb7tr+gQZvAR0oUVxGv35pg/OnASY8e3GDuBMT30mrJgPa5wh0hcfO Ypui/67Cl1fPMElLkDEt9fOVRdejoKckSPUxtjgbBor0+w3kxslK89dRgyUPp2zS8myT yaW3iS5NNZV+/Tx7jzK9xqE9Uo38BjO9PbJRXWfQxagdewVFS16Scmwde94G7hzWq8Y2 E5XnmHb/x/H8yx9hwKo4sKceuVFWAZpw64Zc024adNmSKP/TDvot3CWsPPtfZPrVgWhv AzhvFIWMFB5G4X/pGDZK0hi+rdS0F4KQq9vNDFutge59fds9T+VBf7fYED6AvYfgpiNo m67g== X-Gm-Message-State: AMCzsaXGqzYh1SUuFzC2Za57K/AYIX2iAOzoNqr7Vd/adb9/Ubu2PGaa L2s49airEg0oOjvh4qPEbXz3EGt8cjx816dmrXmd+7sx X-Google-Smtp-Source: ABhQp+RmG0Gkb8cXcD28/CTczQOCH7UBpeVqU2j6cDqVJv8vjGiD52WIs0KtiOkCb6+zpd9u+IIb2TACUWUcJcCvNAk= X-Received: by 10.55.4.136 with SMTP id 130mr4980483qke.226.1508370444809; Wed, 18 Oct 2017 16:47:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.19.10 with HTTP; Wed, 18 Oct 2017 16:47:24 -0700 (PDT) From: Allen Li Date: Wed, 18 Oct 2017 16:47:24 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The significance of the priorities for package-archive-priorities is not documented properly in the docstring for package-archive-priorities. A few things come to mind: 1. The archive priority is prepended to the package version when checking for updates. This is alluded to in the docstring, but not stated explicitly. 2. Already installed packages have priority 0. This is especially important for archives with negative priorities. Setting an archive to a negative priority means that packages from that archive will not be considered for upgrading (since the currently installed package has priority 0 and will always be "higher"/"newer". In GNU Emacs 25.2.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8), modified by Debian Windowing system distributor 'The X.Org Foundation', version 11.0.11803000 System Description: Ubuntu 14.04 LTS From unknown Sat Jun 21 10:39:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28897: 25.2.50; Document significance of package-archive-priorities Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2019 22:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28897 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Allen Li Cc: 28897@debbugs.gnu.org Received: via spool by 28897-submit@debbugs.gnu.org id=B28897.156314294122521 (code B ref 28897); Sun, 14 Jul 2019 22:23:01 +0000 Received: (at 28897) by debbugs.gnu.org; 14 Jul 2019 22:22:21 +0000 Received: from localhost ([127.0.0.1]:46163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmmsv-0005rB-88 for submit@debbugs.gnu.org; Sun, 14 Jul 2019 18:22:21 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmmst-0005r2-UC for 28897@debbugs.gnu.org; Sun, 14 Jul 2019 18:22:20 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmmsp-0006hm-Ly; Mon, 15 Jul 2019 00:22:18 +0200 From: Lars Ingebrigtsen References: Date: Mon, 15 Jul 2019 00:22:15 +0200 In-Reply-To: (Allen Li's message of "Wed, 18 Oct 2017 16:47:24 -0700") Message-ID: <87sgr8uui0.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Allen Li writes: > The significance of the priorities for package-archive-priorities is > not documented properly in the docstring for > package-archive-priorities. > > A few things come to mind: > > 1. The archive pr [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Allen Li writes: > The significance of the priorities for package-archive-priorities is > not documented properly in the docstring for > package-archive-priorities. > > A few things come to mind: > > 1. The archive priority is prepended to the package version when > checking for updates. This is alluded to in the docstring, but not > stated explicitly. --- When installing packages, the package with the highest version number from the archive with the highest priority is selected. When higher versions are available from archives with lower priorities, the user has to select those manually. --- As far as I can tell from reading the code, this is exactly what happens. (It creates a (cons priority version) thing for comparison. > 2. Already installed packages have priority 0. This is especially > important for archives with negative priorities. Setting an archive > to a negative priority means that packages from that archive will not > be considered for upgrading (since the currently installed package has > priority 0 and will always be "higher"/"newer". I did some testing, and it does seem that installed packages get a 0 priority, so I've documented what you mention here. But I don't know whether that's a bug or not -- it's not documented, but the `archive' slot of installed packages is nil: (package-desc-archive #s(package-desc js2-mode (20150909) "Improved JavaScript editing mode" ((emacs (24 1)) (cl-lib (0 5))) nil nil "/home/larsi/.emacs.d/elpa/js2-mode-20150909" ((:keywords "languages" "javascript") (:url . "https://github.com/mooz/js2-mode/")) nil)) => nil So it happens as a side effect of that. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 18:22:37 2019 Received: (at control) by debbugs.gnu.org; 14 Jul 2019 22:22:37 +0000 Received: from localhost ([127.0.0.1]:46166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmmtB-0005rf-IN for submit@debbugs.gnu.org; Sun, 14 Jul 2019 18:22:37 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmmt9-0005rX-RM for control@debbugs.gnu.org; Sun, 14 Jul 2019 18:22:36 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmmt7-0006hz-9H for control@debbugs.gnu.org; Mon, 15 Jul 2019 00:22:35 +0200 Date: Mon, 15 Jul 2019 00:22:32 +0200 Message-Id: <87r26suuhj.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #28897 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 28897 fixed close 28897 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 28897 fixed close 28897 27.1 quit