From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Kim 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: Sat, 19 Nov 2022 09:23:50 -0800 Message-ID: References: <87o7tbq3l6.fsf@gmail.com> <878rkd3h7u.fsf@posteo.net> <87iljf8ho5.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15210"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59226@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 19 18:25:33 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 1owRau-0003jp-K8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 18:25:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owRae-0004bW-Lk; Sat, 19 Nov 2022 12:25: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 1owRaV-0004al-R3 for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 12:25: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 1owRaP-00037h-PA for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 12:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owRaP-0003Qq-Lb for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 12:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Kim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2022 17:25:01 +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.166887865013125 (code B ref 59226); Sat, 19 Nov 2022 17:25:01 +0000 Original-Received: (at 59226) by debbugs.gnu.org; 19 Nov 2022 17:24:10 +0000 Original-Received: from localhost ([127.0.0.1]:41043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owRZZ-0003Pc-Mw for submit@debbugs.gnu.org; Sat, 19 Nov 2022 12:24:10 -0500 Original-Received: from mail-ej1-f47.google.com ([209.85.218.47]:43761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owRZY-0003PP-6T for 59226@debbugs.gnu.org; Sat, 19 Nov 2022 12:24:09 -0500 Original-Received: by mail-ej1-f47.google.com with SMTP id m22so19983047eji.10 for <59226@debbugs.gnu.org>; Sat, 19 Nov 2022 09:24:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=s7dBBe86Ewox7OACk+YljqrDPRfgmYA2nZYgp7AvOfI=; b=V3ZiKz1TJtVqvZFPCZCMscaLERNGpXkzxYQlXv+OsoznIdBzi56WzXWLNbySl4UJOR 66do1ExfuKZbvuc76oc6ndb5uCJ1h8U8SUv3ATWzk4EjRLw6Jkynms+4d0SQPtG+fODx W8iKCrRHFuz38u5BnKiSC7Hzmdv3ZZuhd6kK6wZatbhh8hg5grBslNLz0HT2fdYXg3sb r65nSw1WtxTm5Wq33/C6QeEQQP2bysnW3d97WSqoNswXaP+O9LCYSVqRXekr/miuauCn +7xQKyni98Im5dfiB//npKnuubbszRIaygL7iax1xwy+2FvL4tvKEfV24eHCBKHx1Qwm 5NDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=s7dBBe86Ewox7OACk+YljqrDPRfgmYA2nZYgp7AvOfI=; b=chmY58jD7269pD+ylRAVceDVcKtrJHMd9DhxVrBMyYOxkUzVzzBXimEYcxfF9+E4ei U1TEU69dZtL+dblAiIaFLeariuNzWC2Ywqpos86pjldFFvkFvkcz1VBcDvocvi5q9zE9 4kZVo7CKivqsmvIDJ7jkwsdWDvMA1pYwjE6V07rxWcwqy1RU3p9/CaRxTa0T85vcEzF0 n9X6LTDObXUPYsb8/x/Kb0VTqGkNQ8i0b8EMHTExDfta8VoCVqRuqG+Gq1PeDq2ho5g2 5GgaTbnrekRGDX18REkWpsQErUU/iTyNRfLEETekP5qVN6HHg2NT+GkrxfE8HUEx3u7S 1vaA== X-Gm-Message-State: ANoB5pksEdSMSiqj4tCfa3vwnrqfeIAF2hB9P9kq07A3RqTq3YIsaQvP XTzpftJYFIwdxBOmUxh00KDI7BGgef+2k4jy/Uo= X-Google-Smtp-Source: AA0mqf4qPS8seio1mXFfFe4koq+bkWIzZM9Hyc028U7vohOSykFFdJN6nI3QLyGTeXI36MdP2qDX7KH63GSYG6NINfs= X-Received: by 2002:a17:906:3c12:b0:7ad:7e81:1409 with SMTP id h18-20020a1709063c1200b007ad7e811409mr10127140ejg.326.1668878642204; Sat, 19 Nov 2022 09:24:02 -0800 (PST) In-Reply-To: <87iljf8ho5.fsf@posteo.net> 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:248356 Archived-At: Spacemacs is one large emacs setup designed to be the initialization code, i.e., emacs --init-directory spacemacs-directory. It uses use-package to install typically hundreds of packages. straight.el is an alternative to package.el where packages are installed by cloning git (or other) repositories and building packages from source directly. This is similar to package-vc.el. The key difference is that the git clone directories are not added to load-path. Rather a new directory is created where symlinks to *.el files are used plus byte compiled files, e.g., following would be added to load-path: $ cd .../spacemacs/.local/straight/build-29.0-102921/dash/ $ ls -l total 360 -rw-rw-r-- 1 kimr kimr 2936 Oct 29 22:04 dash-autoloads.el lrwxrwxrwx 1 kimr kimr 63 Oct 29 22:04 dash.el -> /home/kimr/.emacs.d/sm-ms/.local/straight/repos/dash.el/dash.el -rw-rw-r-- 1 kimr kimr 147632 Oct 29 22:04 dash.elc -rw-rw-r-- 1 kimr kimr 198812 Oct 29 22:04 dash.info lrwxrwxrwx 1 kimr kimr 65 Oct 29 22:04 dash.texi -> /home/kimr/.emacs.d/sm-ms/.local/straight/repos/dash.el/dash.texi -rw-rw-r-- 1 kimr kimr 617 Oct 29 22:04 dir $ I have an update to my previous email. I think I'm understanding better how package-vc is supposed to work. So please disregard my previous question on activation. Instead I would like to share that package-vc seems to work fine except for packages that house *.el files within a sub-directory, e.g., magit or git-commit packages which use lisp sub-directories. For these packages I either have to install magit package using package.el (even though I installed it via package-vc) or I would have to manually add the lisp sub-directory to load-path in my startup file. If I do that, then magit and git-commit packages installed via package-vc work. Following is what I currently have in my startup file to be able to use package-vc installed magit and git-commit packages. (add-to-list 'load-path "~/.emacs.d/sm-my/elpa/29.0/site/git-commit/lisp") (add-to-list 'load-path "~/.emacs.d/sm-my/elpa/29.0/site/magit/lisp") In my typical spacemacs setup, I have between 300 and 400 hundred packages installed. I think more than half were installed via package-vc and rest were installed via pacakge.el. I'm trying to see if I can use package-vc to install all packages.