summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2023-09-08 11:42:52 +0300
committerIhor Radchenko <yantar92@posteo.net>2023-09-08 11:42:52 +0300
commit0dad7872831e49e5338d888ebffe525cf7f04e13 (patch)
tree1c116978f07c7d782619246f345f7b0930df0050
parent1d766451f81b54169215ffce65a3facf67192a99 (diff)
downloadelpa-0dad7872831e49e5338d888ebffe525cf7f04e13.tar.gz
Suggest `package-install' to install non-core packages (bug#63800)
* elpa-admin.el (elpaa--html-make-pkg): Change wording on instructions how to install package. For core packages, suggest M-x list-packages. For all other packages, suggest both M-x package-install and M-x list-packages. Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63800#68
-rw-r--r--elpa-admin.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/elpa-admin.el b/elpa-admin.el
index 2c2d2ae..5bf18c2 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -1863,10 +1863,9 @@ arbitrary code."
(insert (format "<dt>Badge</dt><dd><img src=\"%s.svg\"/></dd>\n" (elpaa--html-quote name)))
(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\">list-packages</span> RET</pre>
- <p>Then, find <span class=\"kw\">%s</span> in the list, click on the link, and click <pre>Install</pre>.</p>"
- name))
+ (insert (format "<p>To install this package from Emacs, use %s.</p>"
+ (if (elpaa--spec-get pkg-spec :core) "<code>list-packages</code>"
+ "<code>package-install</code> or <code>list-packages</code>")))
(let* ((readme-content (elpaa--get-README pkg-spec srcdir))
(readme-text plain-readme)
(readme-html (elpaa--section-to-html readme-content))