From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Newsgroups: gmane.emacs.devel Subject: Re: feature/package-vc has been merged Date: Thu, 10 Nov 2022 00:52:08 +0100 Message-ID: References: <164484721900.31751.1453162457552427931@vcs2.savannah.gnu.org> <87mt9epqlk.fsf@posteo.net> <87ilk1bgvd.fsf@posteo.net> <87edupbdp0.fsf@posteo.net> <875yg1bc02.fsf@posteo.net> <878rkxgpms.fsf@posteo.net> <87sfiyk3a2.fsf_-_@posteo.net> <87mt948pmo.fsf@posteo.net> <87fsevyxnt.fsf@posteo.net> <87zgd1f70g.fsf@posteo.net> <878rkkbj90.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32445"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Richard Stallman , emacs-devel@gnu.org, 'Eli Zaretskii' To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 00:53:11 2022 Return-path: Envelope-to: ged-emacs-devel@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 1osusY-0008GF-Ss for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 00:53:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osuri-00023V-1p; Wed, 09 Nov 2022 18:52:18 -0500 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 1osurg-00023M-Uv for emacs-devel@gnu.org; Wed, 09 Nov 2022 18:52:16 -0500 Original-Received: from mr85p00im-ztdg06011201.me.com ([17.58.23.181]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osurf-0003Dm-5y for emacs-devel@gnu.org; Wed, 09 Nov 2022 18:52:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1668037932; bh=VEbQQnuujLFyoGqkE8LYFpVFkfH0XeD/1+YruuuxiGY=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=casYe4HlUzTa5zgLjtZyiAhlkAdQ5S6Cr4gplaPHym5znxT8U9XN6koRNWgr6JuBL 4LmrGmhSISGwnnIMu2Umh/Q3ttSqEZ1zxchnUD5HnJoDijVK2nL2OSpR7zKXfIyrY+ /2RvP6tGDA6iUrrg2I6axpt6hFVBRpovm08JaMrmK2KJCUQOpzHlGYU4P+Tqt1z2GX /VHSXgeAGWHtn9ZRktgA/C6sEBzO0IgtRkPv/Q4X7Ig7BA9EDp5OzQ09bPbFVHfQFG h92FjrUdkM1CQsrItXuEKq5y06vpa2RVOaKyVzdMk/Il6Lfki4GlwvXSgPosHHjJvb Lu5b8qifmYkOQ== Original-Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06011201.me.com (Postfix) with ESMTPSA id 85D619609FF; Wed, 9 Nov 2022 23:52:11 +0000 (UTC) In-Reply-To: <878rkkbj90.fsf@posteo.net> X-Proofpoint-GUID: LVfiMftvv95U4QiSopw6-EFTggtZZk4d X-Proofpoint-ORIG-GUID: LVfiMftvv95U4QiSopw6-EFTggtZZk4d X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 malwarescore=0 mlxscore=0 clxscore=1015 mlxlogscore=999 adultscore=0 spamscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2211090179 Received-SPF: pass client-ip=17.58.23.181; envelope-from=salutis@me.com; helo=mr85p00im-ztdg06011201.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299444 Archived-At: Philip Kaludercic writes: > To avoid unnecessary an back and forth, pushing commits and reverting > them, I have pushed the proposed changes to the > "scratch/package-vc-fixes" branch, that I will rebase onto master when > the changes are ready. If you have the time, try it out and see if > the issues you had were resolved. I have just tried it, and below, I summarize my experience. Please note that I have not read any source code, nor followed the dicussion word for word. Thus, I write my reports as a new user. Hopefully, you find them useful. 1. Simplify the configuration. =20=20=20 (add-hook 'after-init-hook #'package-vc-install-selected-packages -99) =20=20=20 No `require', no `closure', no nothing. Beautiful. Restart Emacs. 2. Try "refreshing" (no) packages. M-x package-vc-refresh Got: completing-read-default: Wrong type argument: stringp, t 3. Try to install Modus Themes Update the configuration from `package' to `package-vc': =20=20=20 (with-eval-after-load 'package-vc (add-to-list 'package-vc-selected-packages 'modus-themes)) =20=20=20 Delete `modus-themes-' from `~/.emacs.d/elpa'. =20=20=20 Restart Emacs. Got: =20=20=20 user-error: Unknown package to fetch: nil =20=20=20 *scratches head* =20=20=20 Oh, the list! Change the configuration again: =20=20=20 (with-eval-after-load 'package-vc (add-to-list 'package-vc-selected-packages '(modus-themes))) =20=20=20 Restart Emacs. Got: =20=20=20 run-hooks: Symbol=E2=80=99s function definition is void: modus-themes-load-operandi =20=20=20 Check `~/.emacs.d/elpa' to see if it contains `modus-themes'. It does. =20=20=20 *scratches head* =20=20=20 Check `package-vc-selected-packages': Its value is ((modus-themes)) =20=20=20 Try `M-x package-vc-update'. Got: =20=20=20 completing-read-default: Wrong type argument: stringp, t =20=20=20 Check `load-path' if it contains `modus-themes'. It does. =20=20=20 Execute `M-: (require 'modus-themes)' followed by `M-x modus-themes-load-operandi'. The theme loads. *scatches head* =20=20=20 Think: "It seems that Emacs needs to process auto-loads." =20=20=20 Tries `package-refresh' again. Got: =20=20=20 completing-read-default: Wrong type argument: stringp, t 4. Give up and report back. :) Amost there! > Ah ok, but that is to be excepted for now. I am not part of the MELPA > project, so I can't "force" them to provide package specifications. > If they are missing, then we must rely on heuristics to download > source packages. My hope is that they will add the file too at some > point. I see. One can still install MELPA packages via a URL, right? P.S. 1 I remain unsure what `refresh' means. According to the documentation, it "refresh[es] the installation for [the] package". But what does it mean? The command needs a more detailed documentation and perhaps also a more descriptive name. I understand the `update', but not the `refresh'. P.S. 2 I could not find `package-vc-update-all' akin `package-update-all'. Not that I needed it, but I looked for it in the case I manage to install more packages. P.S. 3 The `package-vc-selected-packages' documentation still does not link the `package-vc-archive-spec-alist' variable. But I noticed that the variable has a new name, with a double dash for private use. Either way, I just wanted to mention this fact for completness. Rudy --=20 "Simplicity is complexity resolved." -- Constantin Br=C3=A2ncu=C8=99i, 1876-1957 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia