From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#63800: 30.0.50; [ELPA] Inaccurate installation instructions for built-in packages Date: Sun, 09 Jul 2023 11:59:01 +0000 Message-ID: <87bkgl8fei.fsf@localhost> References: <87mt1mi6ry.fsf@localhost> <87y1l5q9p9.fsf@posteo.net> <875y89t2a1.fsf@localhost> <87r0qdxnvh.fsf@localhost> <12eb3b7e-f944-6a96-cfb9-285891d659ca@gutov.dev> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25779"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , 63800@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 09 14:00:22 2023 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 1qIT5R-0006Z1-Rs for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Jul 2023 14:00:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIT5J-00026V-Aj; Sun, 09 Jul 2023 08:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIT5B-000239-Gp for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 08:00:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIT59-0006iB-0d for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 08:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qIT58-0001o5-Do for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 08:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Jul 2023 12:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63800 X-GNU-PR-Package: emacs Original-Received: via spool by 63800-submit@debbugs.gnu.org id=B63800.16889039446833 (code B ref 63800); Sun, 09 Jul 2023 12:00:02 +0000 Original-Received: (at 63800) by debbugs.gnu.org; 9 Jul 2023 11:59:04 +0000 Original-Received: from localhost ([127.0.0.1]:45914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIT4C-0001m9-4y for submit@debbugs.gnu.org; Sun, 09 Jul 2023 07:59:04 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:52493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIT49-0001le-Lf for 63800@debbugs.gnu.org; Sun, 09 Jul 2023 07:59:03 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B7BBE240101 for <63800@debbugs.gnu.org>; Sun, 9 Jul 2023 13:58:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688903935; bh=nEncDPh5scqh1uKd8FP0loLlkvvQvg6lshgzsj0v8+k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=bV/2r7X2OlSeTIPBAGWJxUhcHxXq/S2GHB3Ay2VjblDG19w0aBtnfY+ua6jMClBDu L2mG8OGSmYJd0YpRjVJMLtn/TkVZiqd2YqpoIVdQSqtUw3DoZouyc1vvMInbgivwSd 7JhGLSli5MHGRkPGs9yOOtvcc057eqQZPO7O9mME+0faGIGd1XEKUWcZnwBr5Wq/Ds 5tC6Yz7+9QYfk9hT85oeH/HrWsE8Id2b/k+ezMmSJE820EQySxt3Y0mgSzUJwGmygx ESoQtQMYNzPTwDZU2S66+b3I47i70+yv4wfPSirE1acnpZTpvCOgYyFTXeyWk4oXhc GvwONGuAftw+Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QzQdp6jJkz6tw8; Sun, 9 Jul 2023 13:58:54 +0200 (CEST) In-Reply-To: <12eb3b7e-f944-6a96-cfb9-285891d659ca@gutov.dev> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264834 Archived-At: --=-=-= Content-Type: text/plain Dmitry Gutov writes: > Perhaps a simpler alternative is to stop referencing 'package-install' > and instead point uses to 'M-x list-packages'. See the attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Suggest-package-install-to-install-packages.patch >From e3e7eae381c0756b54935121c3f0a641685af666 Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko 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 "") (insert (format "

To install this package, run in Emacs:

-
M-x package-install RET %s RET
" +
M-x list-packages RET
+

Then, find %s in the list, click on the link, and click Install.

" name)) (let* ((readme-content (elpaa--get-README pkg-spec srcdir)) (readme-text plain-readme) -- 2.41.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--