From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#68317: Can't sort *Packages* buffer by version after installing with package-vc Date: Tue, 09 Jan 2024 19:25:44 +0000 Message-ID: <877ckis407.fsf@posteo.net> References: <87edesnqd6.fsf@breatheoutbreathe.in> <835y04q8o0.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="10745"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68317@debbugs.gnu.org, Joseph Turner To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 09 20:26:47 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 1rNHkN-0002cC-NY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Jan 2024 20:26:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNHkB-0000Sz-P1; Tue, 09 Jan 2024 14:26:36 -0500 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 1rNHjZ-0000EM-L8 for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 14:26:05 -0500 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 1rNHjX-0004cf-PP for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 14:25:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNHje-0003J2-DU for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 14:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2024 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68317 X-GNU-PR-Package: emacs Original-Received: via spool by 68317-submit@debbugs.gnu.org id=B68317.170482836112702 (code B ref 68317); Tue, 09 Jan 2024 19:26:02 +0000 Original-Received: (at 68317) by debbugs.gnu.org; 9 Jan 2024 19:26:01 +0000 Original-Received: from localhost ([127.0.0.1]:40980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNHjd-0003In-1b for submit@debbugs.gnu.org; Tue, 09 Jan 2024 14:26:01 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:39677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNHja-0003IT-Hy for 68317@debbugs.gnu.org; Tue, 09 Jan 2024 14:25:59 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E8768240103 for <68317@debbugs.gnu.org>; Tue, 9 Jan 2024 20:25:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704828345; bh=/5OJSDsRlAgthqiquc0M/8jPwiEKDqYSCO08gffoBUQ=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=hn4vwxDXZmcpnDr4nldq5kCvnBiauTxMwFlCQPperzeiMAfdy9iWuvdJLk0SgbyP4 GD/JXraD29meSRFLIXR1fXx8TDj+0qrr3hG0HF9hpgKWaonTn14PSbclL6huAEs279 PPPKhe3zZZsR1L/V29R1NGNvUeQgsUzthFaKa8DszrJ1F5qKUpz931w1ck3aGmha+J PzeDsIehZpUL9ZoFWMimTiklx5J+Xkjijc7aNMkrzmKLPfUUp/Q80hyiNZsvrlT9F4 mE39pjlllH6r2wygJ7T8h+12DJ72psIRAeMLsEzQvbWIspa4Jb8ZO5E69xgDPOJSnR jONQLgirdyhCw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T8grT1KS3z6twm; Tue, 9 Jan 2024 20:25:45 +0100 (CET) In-Reply-To: <835y04q8o0.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 08 Jan 2024 15:03:27 +0200") Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt 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:277648 Archived-At: Eli Zaretskii writes: >> Date: Mon, 08 Jan 2024 00:59:38 -0800 >> From: Joseph Turner via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> To reproduce: >>=20 >> 1. Install some package using package-vc. >>=20 >> 2. Open the *Packages* buffer: M-x list-packages. The version column >> for the newly installed package should display a git hash. >>=20 >> 3. Click on the Version column header. If the package's hash starts with >> a letter, then instead of sorting the results, Emacs signals an error: >>=20 >> version-to-list: Invalid version syntax: =E2=80=98c99367ebc2f0afe0baaf2f= 5e5ca1ad9d62ba6e21=E2=80=99 (must start with a number) > > Sounds like package-vc-commit should be modified to produce a valid > version string (which SHA1 is not)? Philip? We can also adjust `package-menu--version-predicate' to handle non-version numbers, which I think would be more robust.