unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Rudolf Schlatte <rudi@constantly.at>
To: 54747@debbugs.gnu.org
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	[thread overview]
Message-ID: <m1mtgx6m5t.fsf@eduroam-193-157-195-60.wlan.uio.no> (raw)
In-Reply-To: <9c7d2f03-5ee2-c5f8-e804-2c4dbf98a05e@daniel-mendler.de>

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Daniel Mendler <mail@daniel-mendler.de> 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 <rudi@constantly.at>
;; 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 <http://www.gnu.org/licenses/>.

;;; Commentary:

;; Open this file, then install via `package-install-from-buffer'

(provide 'package-try)
;;; package-try.el ends here






  parent reply	other threads:[~2022-04-07 13:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 12:16 bug#54747: 28.1.50; package.el - Better error message if newer Emacs is required Daniel Mendler
     [not found] ` <handler.54747.B.164924739831028.ack@debbugs.gnu.org>
2022-04-06 12:20   ` bug#54747: Acknowledgement (28.1.50; package.el - Better error message if newer Emacs is required) Daniel Mendler
2022-04-06 12:30     ` Daniel Mendler
2022-04-07 11:46       ` bug#54747: 28.1.50; package.el - Better error message if newer Emacs is required Lars Ingebrigtsen
2022-04-07 11:55         ` Daniel Mendler
2022-04-08 12:51           ` Lars Ingebrigtsen
2022-04-08 14:03             ` Daniel Mendler
2022-04-09  9:47               ` Lars Ingebrigtsen
2022-04-09 10:13                 ` Daniel Mendler
2022-04-07 13:46         ` Rudolf Schlatte [this message]
2022-04-08 12:47           ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1mtgx6m5t.fsf@eduroam-193-157-195-60.wlan.uio.no \
    --to=rudi@constantly.at \
    --cc=54747@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).