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: Fri, 14 May 2021 09:21:03 +0300 Message-ID: <83wns1zvhs.fsf@gnu.org> References: <875yzms6im.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17758"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48404@debbugs.gnu.org, stefan@marxist.se To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 14 08:21:11 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 1lhRCB-0004TH-9y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 08:21:11 +0200 Original-Received: from localhost ([::1]:49038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhRC9-00079R-CJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 02:21:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhRC2-000781-Dm for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 02:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhRC2-0003cx-6H for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 02:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhRC2-0005dt-2a for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 02:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 May 2021 06:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48404 X-GNU-PR-Package: emacs Original-Received: via spool by 48404-submit@debbugs.gnu.org id=B48404.162097326021663 (code B ref 48404); Fri, 14 May 2021 06:21:02 +0000 Original-Received: (at 48404) by debbugs.gnu.org; 14 May 2021 06:21:00 +0000 Original-Received: from localhost ([127.0.0.1]:44760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhRC0-0005dL-1D for submit@debbugs.gnu.org; Fri, 14 May 2021 02:21:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhRBy-0005dA-70 for 48404@debbugs.gnu.org; Fri, 14 May 2021 02:20:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44144) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhRBs-0003Vs-V0; Fri, 14 May 2021 02:20:52 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2410 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 1lhRBs-0007FN-4f; Fri, 14 May 2021 02:20:52 -0400 In-Reply-To: <875yzms6im.fsf@gnu.org> (message from Tassilo Horn on Thu, 13 May 2021 22:45:01 +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:206475 Archived-At: > From: Tassilo Horn > Date: Thu, 13 May 2021 22:45:01 +0200 > Cc: Stefan Kangas > > Since commit 1af91d271e077134e272055407fb8c4312a7579b I get strange > "Invalid version syntax: (must start with a number)" > errors during M-x completion in the minibuffer. I can't reproduce with > emacs -Q but in the error, is always some (M)ELPA package. > > For example, M-x mag TAB gives > > completion--some: Invalid version syntax: ‘Magit 3.0.0’ (must start with a number) That commit uses byte-obsolete-info property of a symbol, and expects its caddr to be a valid version number. It sounds like in some cases it is not an Emacs version, but something else. So, questions: . can you find out what kind of value does the byte-obsolete-info property is there on Magit functions? and . how come these properties were added to something that is not an Emacs core code? In any case, it sounds like blindly trusting the value of that property is not a good idea, and we should wrap the call to version-to-list there in condition-case. Could you try that?