From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: feature/package-vc has been merged Date: Thu, 10 Nov 2022 18:29:04 +0000 Message-ID: <878rki7jf3.fsf@posteo.net> References: <164484721900.31751.1453162457552427931@vcs2.savannah.gnu.org> <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> <87edua7jw5.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="39415"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Richard Stallman , emacs-devel@gnu.org, 'Eli Zaretskii' To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 19:29:38 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 1otCIz-000A4T-SZ for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 19:29:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otCIb-0002X8-1w; Thu, 10 Nov 2022 13:29:13 -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 1otCIZ-0002WF-UI for emacs-devel@gnu.org; Thu, 10 Nov 2022 13:29:11 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otCIX-0007u2-U7 for emacs-devel@gnu.org; Thu, 10 Nov 2022 13:29:11 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7D471240027 for ; Thu, 10 Nov 2022 19:29:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668104946; bh=xzk4c7XoIyq4EaVcIqKwKJogQbf4DSmGQ8y18SWYdiM=; h=From:To:Cc:Subject:Date:From; b=TXZRuLcX3zA7UFycHEPizg5/8FwxD3H4NEf1QnjMpKJvpmXoy9U6AG17pskPJeBMV r0Wp2QY+LdyANNMBJMew3XkwPirw7Tx7gd2WLBQ69a7cTh2JzjVmtYMPSO1883NqJk vU+I9EjvI4ytrVeTJIaakoiQ99mArSKL6zEM0jt13c3+8D0BX2dcnzVCJV/WrrLdAV hsVlM111/IuqeHS5eJcTNd8FbzF5UXmAo8kAg3GAS3WhGRR/yWwuZxyZnJXhDL/9fT KcrkxZAsxFV3ZbAK8MtjiZ6qrS+sVio/x8vyIt6fyrztKdXzqEZItAxKNcVRLZFp/N HupWnGmbCiWnA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N7VjF4lJKz9rxG; Thu, 10 Nov 2022 19:29:04 +0100 (CET) In-Reply-To: <87edua7jw5.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 10 Nov 2022 18:18:50 +0000") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:299515 Archived-At: (sorry, this message got sent out too early. Continuing my reply here) > 3. Try to install Modus Themes > > Update the configuration from `package' to `package-vc': >=20=20=20=20 > (with-eval-after-load 'package-vc > (add-to-list 'package-vc-selected-packages 'modus-themes)) >=20=20=20=20 > Delete `modus-themes-' from `~/.emacs.d/elpa'. >=20=20=20=20 > Restart Emacs. > > Got: >=20=20=20=20 > user-error: Unknown package to fetch: nil > > *scratches head* >=20=20=20=20 > Oh, the list! Change the configuration again: >=20=20=20=20 > (with-eval-after-load 'package-vc > (add-to-list 'package-vc-selected-packages '(modus-themes))) >=20=20=20=20 > Restart Emacs. Two ways to resolve this: Either throw an error earlier, which might be annoying but the right thing=E2=84=A2, or dwim and accept that the value mi= ght not be readable in ECI. > Got: >=20=20=20=20 > run-hooks: Symbol=E2=80=99s function definition is void: > modus-themes-load-operandi >=20=20=20=20 > Check `~/.emacs.d/elpa' to see if it contains `modus-themes'. > > It does. >=20=20=20=20 > *scratches head* >=20=20=20=20 > Check `package-vc-selected-packages': > > Its value is ((modus-themes)) >=20=20=20=20 > Try `M-x package-vc-update'. > > Got: >=20=20=20=20 > completing-read-default: Wrong type argument: stringp, t > > Check `load-path' if it contains `modus-themes'. > > It does. >=20=20=20=20 > Execute `M-: (require 'modus-themes)' followed by `M-x > modus-themes-load-operandi'. > > The theme loads. > > *scatches head* >=20=20=20=20 > Think: "It seems that Emacs needs to process auto-loads." >=20=20=20=20 > Tries `package-refresh' again. > > Got: >=20=20=20=20 > completing-read-default: Wrong type argument: stringp, t This issue should be resolved with the above patch, but the question still remains what went wrong in the above installation. Can you check/post the -pkg.el and -autoloads.el file? > 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? package-vc.el (just like package.el) doesn't treat MELPA packages as special or different. If you give `package-vc-install' a URL, it will try to guess what has to be done -- this doesn't always work, but the guessing can still be improved. What you can do with `package-vc-selected-packages' is give your own ELPA-esque specification. That should work most of the time if a package is not available on GNU ELPA or NonGNU ELPA. > 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'. Did the above docstring clarify that point? > 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. It doesn't exist. My idea was that package-update-all would handle that, but there might be a value in a command that only updates source 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. As mentioned above there are a few commits I haven't been able to push because emacs.git is preventing me from force pushing. I'll try to get them up there some other way, and then rewrite the history before rebasing the changes onto master. > Rudy