From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48404: 28.0.50; "Invalid version syntax" errors with read-extended-command Date: Sun, 16 May 2021 17:48:16 +0300 Message-ID: <834kf2viof.fsf@gnu.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> <87cztqn3p9.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19691"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48404@debbugs.gnu.org, stefan@marxist.se, tsdh@gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 16 16:49:22 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 1liI53-0004uu-Lb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 May 2021 16:49:21 +0200 Original-Received: from localhost ([::1]:57474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liI52-0005Or-P2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 May 2021 10:49:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liI4l-0005Ob-0d for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 10:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liI4k-0006Pd-02 for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 10:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1liI4j-0007om-SC for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 10:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 May 2021 14:49:01 +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.162117650730010 (code B ref 48404); Sun, 16 May 2021 14:49:01 +0000 Original-Received: (at 48404) by debbugs.gnu.org; 16 May 2021 14:48:27 +0000 Original-Received: from localhost ([127.0.0.1]:51330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liI4A-0007ny-Va for submit@debbugs.gnu.org; Sun, 16 May 2021 10:48:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liI49-0007nl-A6 for 48404@debbugs.gnu.org; Sun, 16 May 2021 10:48:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50940) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liI43-000610-Qg; Sun, 16 May 2021 10:48:19 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3208 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liI41-0006MY-8K; Sun, 16 May 2021 10:48:19 -0400 In-Reply-To: <87cztqn3p9.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 16 May 2021 16:38:58 +0200) 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:206675 Archived-At: > From: Lars Ingebrigtsen > Cc: tsdh@gnu.org, 48404@debbugs.gnu.org, stefan@marxist.se > Date: Sun, 16 May 2021 16:38:58 +0200 > > 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. No change for the worse, sure. That's what I meant when I said they will not be able to take advantage of this feature. They will be excluded. > >> (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))) The main purpose is to compare versions. How would you do that with loose version strings such as the one above? > >> 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. I don't think they will be able to solve this problem, not in satisfactory ways anyway.