From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#48404: 28.0.50; "Invalid version syntax" errors with read-extended-command Date: Sun, 16 May 2021 16:38:58 +0200 Message-ID: <87cztqn3p9.fsf@gnus.org> References: <875yzms6im.fsf@gnu.org> <83wns1zvhs.fsf@gnu.org> <871ra9kdgs.fsf@gnu.org> <83czttzstr.fsf@gnu.org> <87wns1n4k6.fsf@gnus.org> <835yzlzr37.fsf@gnu.org> <87cztqojsk.fsf@gnus.org> <835yzivjnc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18904"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48404@debbugs.gnu.org, stefan@marxist.se, tsdh@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 16 16:40:24 2021 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 1liHwN-0004kD-Ef for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 May 2021 16:40:23 +0200 Original-Received: from localhost ([::1]:54314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHwM-0002xK-HQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 May 2021 10:40:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liHw2-0002xC-T3 for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 10:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liHw2-0000i8-LG for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 10:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1liHw2-0005R4-H1 for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 May 2021 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48404 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 48404-submit@debbugs.gnu.org id=B48404.162117595020811 (code B ref 48404); Sun, 16 May 2021 14:40:02 +0000 Original-Received: (at 48404) by debbugs.gnu.org; 16 May 2021 14:39:10 +0000 Original-Received: from localhost ([127.0.0.1]:51326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liHvC-0005Pb-13 for submit@debbugs.gnu.org; Sun, 16 May 2021 10:39:10 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:47764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liHvA-0005PO-Fs for 48404@debbugs.gnu.org; Sun, 16 May 2021 10:39:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hEhROE5UaAmz/UQ00iiuC5uMT6sU8xpyT6rGkXkhrZE=; b=Faojl4YbpWNVHa3lK1ZCrLJFR1 CJaEMfsyrJrdZB7X6U6xB6PvvzeywA4LLIKMCE4gZxWlrsCybhpj875MiX6ffkWItjSDC0KgOEhKj pEphhQEYBPlHMcsd9U98SAsBNP0H0/e7zSmrlpHa99i3VBQZW8sAWk1TCRHj4d0M20VY=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1liHv1-0007tQ-P1; Sun, 16 May 2021 16:39:02 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEUxLCgiHRlhXFdD Pjr19PDEwbuGgnumo53W1M6AfHb///9QeSwYAAAAAWJLR0QKaND0VgAAAAd0SU1FB+UFEA01Ekv0 2NMAAAGoSURBVDjLjZO9b9swEMVPUlJ5lB0IWkWLjNVNdm1UY6BQpUZ/yBCyuV2ySi0Fc3Qlu1TG Fh3y5zZLhpAskBvvh3ePdw8EeK0xmMuKPDOaULQwAnu5KdemSd9IPWOGYTe0gHFFkAaCnoeW4Jmn gWZUW5UnNeAjcj/pvUgf9dstxBo0AfhNm8pe78OoOo1v8pdnq+CKItHhtWfPlf0I/S676xpdKQDc B2YFxeUuDlXzwzlvT885blQFXMRs02KuAoDM8vv2mmrXcvLH0V25yPU8KFudyvlB29GZgrv7ZUtt w5f6QDK/cCNVkyLM8zRfUnUTHOIhJyzCGwX8PZDzQKpOfH3bT3iYDlxyShNFwUMSiww3WPNAf+JZ N2o+K69ylrKeRlgUvbL4eTt8Sh7Jdq8cyz0ev/iodRtLmbSw7BLX+9UPxdniefgssjJVHADkfpBb MSxPSn/y06/YE85WawUELJ4fWdC4WuRUJAsW7xwti/AWjtNLZkgpQJVtSg/wbh/L0AAkG0R50PvO PR8600e3GWbsNtHBhAVbykyKJw8+mrwhgf+W8z7wD1jTW5FlsOchAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIxLTA1LTE2VDEzOjUzOjE4KzAwOjAwtOn5LwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0w NS0xNlQxMzo1MzoxOCswMDowMMW0QZMAAAAASUVORK5CYII= X-Now-Playing: Rocketnumbernine's _Meyouweyou_: "Lope" In-Reply-To: <835yzivjnc.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 May 2021 17:27:19 +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" Xref: news.gmane.io gmane.emacs.bugs:206674 Archived-At: Eli Zaretskii writes: > For obsolete commands from 3rd-party packages, which state something > like "Magit 3.0" in the version since which they are obsolete, the > obsolescence will never happen, in the sense that they will _always_ > appear in "M-x TAB", even 100 years from now. Is that what we want? That is what was the case before applying the patch, so it's no change for those commands. >> But I'm wondering whether `version-to-list' should be more lax here. >> That is, currently it'll barf of things like: >> >> (version-to-list "28.1 Magit/2.5") > > I'm not sure it's possible without introducing ambiguity into the > version string and complicating comparison of versions. We already > support some non-numeric versions, and that's not easy. Sorry, I was imprecise here -- I didn't mean that we should change `version-to-list' itself here, but add a new function that's more permissive, just for use in this context. It would basically be something along the lines of (version-to-list (car (split-string string))) >> It might make sense to allow the obsoletion versions to refer to both an >> (approximate) Emacs version, as well as a package version. > > How can this be done, even in principle? Versions of unbundled > packages are unrelated to Emacs versions; typically, a given version > of an unbundled package supports quite a few Emacs versions. So what > Emacs version will you put there? That would be up to the package maintainers -- they get to choose what Emacs version(s) the obsolete command would show up in `M-x TAB' completions. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no