unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: Philip Kaludercic <philipk@posteo.net>, 63800@debbugs.gnu.org
Subject: bug#63800: 30.0.50; [ELPA] Inaccurate installation instructions for built-in packages
Date: Sun, 09 Jul 2023 11:59:01 +0000	[thread overview]
Message-ID: <87bkgl8fei.fsf@localhost> (raw)
In-Reply-To: <12eb3b7e-f944-6a96-cfb9-285891d659ca@gutov.dev>

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

Dmitry Gutov <dmitry@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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Suggest-package-install-to-install-packages.patch --]
[-- Type: text/x-patch, Size: 1363 bytes --]

From e3e7eae381c0756b54935121c3f0a641685af666 Mon Sep 17 00:00:00 2001
Message-ID: <e3e7eae381c0756b54935121c3f0a641685af666.1688903858.git.yantar92@posteo.net>
From: Ihor Radchenko <yantar92@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


[-- Attachment #3: Type: text/plain, Size: 224 bytes --]


-- 
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>

  parent reply	other threads:[~2023-07-09 11:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-30  8:05 bug#63800: 30.0.50; [ELPA] Inaccurate installation instructions for built-in packages Ihor Radchenko
2023-05-31  6:46 ` Philip Kaludercic
2023-05-31  6:59   ` Ihor Radchenko
2023-06-07 19:06     ` Philip Kaludercic
2023-06-08 11:01       ` Ihor Radchenko
2023-06-15  2:08     ` Dmitry Gutov
2023-06-15  6:04       ` Ihor Radchenko
2023-06-15 12:34         ` Dmitry Gutov
2023-06-15 15:35           ` Philip Kaludercic
2023-06-15 20:56             ` Ihor Radchenko
2023-07-09 11:59           ` Ihor Radchenko [this message]
2023-07-10  2:14             ` Dmitry Gutov
2023-07-12  7:46             ` Philip Kaludercic
2023-07-12 16:24               ` Ihor Radchenko
2023-07-12 16:38                 ` Philip Kaludercic
2023-07-13  9:39                   ` Ihor Radchenko

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=87bkgl8fei.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=63800@debbugs.gnu.org \
    --cc=dmitry@gutov.dev \
    --cc=philipk@posteo.net \
    /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).