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.bugs Subject: bug#59226: 29.0.50; unable to load package-vc.el if package-vc-selected-packages is non-nil Date: Wed, 16 Nov 2022 07:47:22 +0000 Message-ID: <87iljf8ho5.fsf@posteo.net> References: <87o7tbq3l6.fsf@gmail.com> <878rkd3h7u.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38101"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59226@debbugs.gnu.org To: Richard Kim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 16 08:48:37 2022 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 1ovD9w-0009fQ-FA for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Nov 2022 08:48:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovD9f-00047h-1h; Wed, 16 Nov 2022 02:48:19 -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 1ovD9Q-00045R-OJ for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 02:48:09 -0500 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 1ovD9O-0002oL-N0 for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 02:48:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovD9O-0003jm-E5 for bug-gnu-emacs@gnu.org; Wed, 16 Nov 2022 02:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Nov 2022 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59226 X-GNU-PR-Package: emacs Original-Received: via spool by 59226-submit@debbugs.gnu.org id=B59226.166858485414328 (code B ref 59226); Wed, 16 Nov 2022 07:48:02 +0000 Original-Received: (at 59226) by debbugs.gnu.org; 16 Nov 2022 07:47:34 +0000 Original-Received: from localhost ([127.0.0.1]:55895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovD8w-0003j2-91 for submit@debbugs.gnu.org; Wed, 16 Nov 2022 02:47:34 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:39195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovD8t-0003ij-9N for 59226@debbugs.gnu.org; Wed, 16 Nov 2022 02:47:33 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 12FEB240028 for <59226@debbugs.gnu.org>; Wed, 16 Nov 2022 08:47:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668584845; bh=N0lSV1gt5liv8ClEsuJxLge/ECm+kNAIrCopJ9Y4+QA=; h=From:To:Cc:Subject:Date:From; b=l0QmhvVciKumnL34TMnRBfRt7yY9zxhE4BrlhFDT63yr0CIibdfqKnlQTSr702sBS cVeKBDUymOa7iZR2mshx37ltTgY01RXqEyW49tWWQBEfCgM6Jlt0yr0Tp1pgix/6KC sZKXahmgbGMtkB+CDSQe/vwft0qMgs3H8DgC8bXC9je9aKyK4NzYj6UTJmKgIRVofu jNcC0GFKtBmOJd+NHXQ0TTyKae2LUfAcpyXy49wugYlF24mjfyooAZPAsXZ26hsua1 3UoR+1NAhxfjjxisLqANO48mFL4RjroATk6QgRN5GXZ5n5toUxXV9sEW8UiDIpDd+3 1U0v/uOHfzGDg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NBwB42F5Kz6tn9; Wed, 16 Nov 2022 08:47:21 +0100 (CET) In-Reply-To: (Richard Kim's message of "Tue, 15 Nov 2022 15:04:47 -0800") 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:247990 Archived-At: Richard Kim writes: > Thanks Philip. I built scratch/package-vc-fixes branch, and verified > that the problem reported by me is gone. Splendid. > I would like to ask a follow-up question. I'm trying to use > package-vc as a replacement for straight.el in my setup. > I've been using straight.el within spacemacs for some time. If you > are interested, the details can be found at > https://github.com/emacs18/spacemacs/tree/sm-straight I am unfamiliar with both spacemacs and straight, so I'd be lost on my own. Could you point me to some specific example in the repository? > The key thing I have not yet figured out is how to activate packages > installed by package-vc when emacs starts up. > Package activation is done by the latter part of package-vc--unpack-1 > function. Would it be possible to split out > activation as a separate function? Package "activation" (in the sense of `package-activate', checking for dependencies, adding the right directories to the load path, loading the info manuals, ...) is still handled by package.el. package-vc.el is firmly based on package.el, but just provides an alternative to fetching source code. That is also why package-vc doesn't need to be loaded for source packages to be usable -- which speeds up the initialisation. The functionality of `package-vc--unpack-1' is exposed via `package-vc-rebuild', but I don't think that that is what you need. If you are having issues with the activation of source packages, then that is a bug we have to understand and resolve.