From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf Schlatte Newsgroups: gmane.emacs.bugs Subject: bug#54747: 28.1.50; package.el - Better error message if newer Emacs is required Date: Thu, 07 Apr 2022 15:46:54 +0200 Message-ID: References: <9c7d2f03-5ee2-c5f8-e804-2c4dbf98a05e@daniel-mendler.de> <7647e4c3-2e5e-b09c-f9a7-aee42571e6d5@daniel-mendler.de> <874k35azgj.fsf_-_@gnus.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="15713"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) To: 54747@debbugs.gnu.org Cancel-Lock: sha1:LT+PvII2Nr6Vn9J5QcMIMHLVVF8= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 07 15:52:00 2022 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 1ncSYK-0003nr-3C for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Apr 2022 15:52:00 +0200 Original-Received: from localhost ([::1]:45642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncSYI-0004yi-CL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Apr 2022 09:51:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncSUV-0002PB-E5 for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2022 09:48:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncSUU-0002wj-K3 for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2022 09:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncSUU-0005Z2-GA for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2022 09:48:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <9c7d2f03-5ee2-c5f8-e804-2c4dbf98a05e@daniel-mendler.de> Resent-From: Rudolf Schlatte Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Apr 2022 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164933922920090 (code B ref -1); Thu, 07 Apr 2022 13:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Apr 2022 13:47:09 +0000 Original-Received: from localhost ([127.0.0.1]:60250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncSTd-0005Df-5n for submit@debbugs.gnu.org; Thu, 07 Apr 2022 09:47:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncSTa-0005Bb-Su for submit@debbugs.gnu.org; Thu, 07 Apr 2022 09:47:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncSTa-0001Sw-7W for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2022 09:47:06 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:37588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncSTY-0002qD-9a for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2022 09:47:05 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ncSTV-0007f6-22 for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2022 15:47:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:229528 Archived-At: Lars Ingebrigtsen writes: > Daniel Mendler writes: > >>> I forgot to mention the current error message. The message is for example: >>> >>> "package emacs-27.1 unavailable" >>> >>> See https://github.com/minad/vertico/issues/217 for the original bug >>> report when a user tried to install a package from GNU ELPA on Emacs 26, >>> while the package requires Emacs 27. >> >> On the other hand, `list-packages` refuses to mark the package as >> installable. So maybe nothing needs to be done here? In any case it is a >> very minor issue. You can probably judge better if people stumbled >> before over this error message. Otherwise feel free to close the issue! > > I think it makes sense to make this error message better -- people may > be calling `package-install' explicitly. > > It'd be easier to debug this if I had a recipe for reproduction, though. > Do you have one handy? I think I can reproduce this via `package-install-from-buffer', with the buffer containing the following (the error message is "Package 'emacs-30.1' is unavailable"): ;;; package-try.el --- reproducing bug #54747 -*- lexical-binding: t; -*- ;; Author: Rudi Schlatte ;; Version: 1.0 ;; Package-Requires: ((emacs "30.1")) ;; Keywords: bugs ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, version 3. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . ;;; Commentary: ;; Open this file, then install via `package-install-from-buffer' (provide 'package-try) ;;; package-try.el ends here