GNU bug report logs - #63800
30.0.50; [ELPA] Inaccurate installation instructions for built-in packages

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Tue, 30 May 2023 08:01:02 UTC

Severity: normal

Found in version 30.0.50

Full log


Message #35 received at 63800 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: Philip Kaludercic <philipk <at> posteo.net>, 63800 <at> debbugs.gnu.org
Subject: Re: bug#63800: 30.0.50; [ELPA] Inaccurate installation instructions
 for built-in packages
Date: Sun, 09 Jul 2023 11:59:01 +0000
[Message part 1 (text/plain, inline)]
Dmitry Gutov <dmitry <at> gutov.dev> writes:

> Perhaps a simpler alternative is to stop referencing 'package-install' 
> and instead point uses to 'M-x list-packages'.

See the attached patch.

[0001-Suggest-package-install-to-install-packages.patch (text/x-patch, inline)]
From e3e7eae381c0756b54935121c3f0a641685af666 Mon Sep 17 00:00:00 2001
Message-ID: <e3e7eae381c0756b54935121c3f0a641685af666.1688903858.git.yantar92 <at> posteo.net>
From: Ihor Radchenko <yantar92 <at> posteo.net>
Date: Sun, 9 Jul 2023 14:56:22 +0300
Subject: [PATCH] Suggest `package-install' to install packages

* elpa-admin.el (elpaa--html-make-pkg): Instruct using `list-packages'
to install packages instead of `package-install'.

See bug#63800.
---
 elpa-admin.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elpa-admin.el b/elpa-admin.el
index 7ee385d0a..2b5c9b3dd 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -1879,7 +1879,8 @@ (defun elpaa--html-make-pkg (pkg pkg-spec files srcdir plain-readme)
       (elpaa--html-insert-docs pkg-spec)
       (insert "</dl>")
       (insert (format "<p>To install this package, run in Emacs:</p>
-                       <pre>M-x <span class=\"kw\">package-install</span> RET <span class=\"kw\">%s</span> RET</pre>"
+                       <pre>M-x <span class=\"kw\">list-packages</span> RET</pre>
+                       <p>Then, find <span class=\"kw\">%s</span> in the list, click on the link, and click <span class=\"kw\">Install</span>.</p>"
                       name))
       (let* ((readme-content (elpaa--get-README pkg-spec srcdir))
              (readme-text plain-readme)
-- 
2.41.0

[Message part 3 (text/plain, inline)]
-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

This bug report was last modified 1 year and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.