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: Wed, 10 Jan 2024 08:28:03 +0000 Message-ID: <878r4xwq24.fsf@posteo.net> References: <87edesnqd6.fsf@breatheoutbreathe.in> <835y04q8o0.fsf@gnu.org> <877ckis407.fsf@posteo.net> <83y1cynv02.fsf@gnu.org> <87plyaqmyk.fsf@posteo.net> <83jzohookz.fsf@gnu.org> <87edephi67.fsf@breatheoutbreathe.in> 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="6633"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 68317-done@debbugs.gnu.org To: Joseph Turner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 10 09:29:27 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 1rNTxm-0001UA-FM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jan 2024 09:29:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNTxI-0000PG-DM; Wed, 10 Jan 2024 03:28:56 -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 1rNTxH-0000Oz-9H for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 03:28:55 -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 1rNTxH-0007ns-10 for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 03:28:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNTxO-0000FF-2w for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 03:29:02 -0500 Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jan 2024 08:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68317 X-GNU-PR-Package: emacs Mail-Followup-To: 68317@debbugs.gnu.org, philipk@posteo.net, joseph@breatheoutbreathe.in Original-Received: via spool by 68317-done@debbugs.gnu.org id=D68317.1704875305878 (code D ref 68317); Wed, 10 Jan 2024 08:29:01 +0000 Original-Received: (at 68317-done) by debbugs.gnu.org; 10 Jan 2024 08:28:25 +0000 Original-Received: from localhost ([127.0.0.1]:41784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNTwm-0000E5-NP for submit@debbugs.gnu.org; Wed, 10 Jan 2024 03:28:25 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:37193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNTwh-0000Dj-7P for 68317-done@debbugs.gnu.org; Wed, 10 Jan 2024 03:28:22 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8AD93240101 for <68317-done@debbugs.gnu.org>; Wed, 10 Jan 2024 09:28:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704875285; bh=sRQuvbdErV5609Y8ERTx/xM52FAWXuIod4DHh6LgkPc=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=P8K/KujAfZNtLIzLFvBb+m4M06UrhawiXv6AeYvmtdIzJ2l0s07T0ZPJKUTpqh9tt LM0jWEbKZ79gwOX7ZTLO2+NhsJf2HyKSmYTstE0ktAh2Wew/xE1w4Tzg5vxlbivUIG j0EFy0E3jrXvUMfpov/S1FDSkkB9tY0fRa5OHR6G+G+a9GJBq2zIHmWIO2xPig5iB8 07uvcTO4m7I4xsNvp4hGC7D6Bm19LQpELRiuQei8REuis00hVVYgHd+a+JZKgxv6nW 9yH2N1L/YN4RV/ARzz9WAvjee09BYDFTnb+fwXtjcSzx3jtiMG1i3B+fgKjKmXIIrF Wmb2QJZs7uEYw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T91C83BS2z6tsg; Wed, 10 Jan 2024 09:28:04 +0100 (CET) In-Reply-To: <87edephi67.fsf@breatheoutbreathe.in> (Joseph Turner's message of "Tue, 09 Jan 2024 21:16:06 -0800") 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:277686 Archived-At: Joseph Turner writes: > Eli Zaretskii writes: > >>> From: Philip Kaludercic >>> Cc: joseph@breatheoutbreathe.in, 68317@debbugs.gnu.org >>> Date: Tue, 09 Jan 2024 20:19:15 +0000 >>> >>> Eli Zaretskii writes: >>> >>> >> From: Philip Kaludercic >>> >> Cc: Joseph Turner , 68317@debbugs.gnu.= org >>> >> Date: Tue, 09 Jan 2024 19:25:44 +0000 >>> >> >>> >> Eli Zaretskii writes: >>> >> >>> >> >> version-to-list: Invalid version syntax: =E2=80=98c99367ebc2f0afe= 0baaf2f5e5ca1ad9d62ba6e21=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. >>> > >>> > Fine by me, but can this be done safely enough for emacs-29? >>> >>> This would be a simple implementation, I don't know if it is safe enough >>> for you: >> >> Looks safe enough, thanks. > > With this solution, when sorting by version, packages at version 0.0.0 > are interleaved with packages whose version string is a hash, such as: > > breadcrumb c99367ebc2f0afe0baaf2f5e5ca1ad9d62ba6e21= source No description available. > chordpro-mode a63fc0b7181299befc4496cba04e0f84d5953000= source No description available. > consult-emms 407edec0f2a997e32cb1bbeff811f73b6fac42ac= source No description available. > denote 5e9b6b3bf0a81e00b0db0071f0c06a889f7e4a71= source No description available. > disable-mouse 0.0.0 external Dis= able mouse commands globally > emacsql 0.0.0 external Hig= h-level SQL database front-end > hl-todo 0.0.0 external Hig= hlight TODO and similar keywords > hyperdrive 2930992446f508a7716b1e52a6aaf824d3f152d9= source No description available. > jabber 6900d9e085bbb2ef35b731c661fe54fa88422d6a= source No description available. > ledger-mode 0.0.0 external Hel= per code for use with the "ledger" command-line tool > lisp unknown source No = description available. > macrostep 0.0.0 external Int= eractive macro expander > > While this is a little bit awkward, it's certainly better than an error. > > Thank you for the quick fix! I agree it is not ideal, I can take a look at it again after emacs-29 is cut. But for now I'll mark the bug report as resolved. > Joseph