From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AC+nEPejFF/kHwAA0tVLHw (envelope-from ) for ; Sun, 19 Jul 2020 19:50:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iBxyDPejFF/mMQAAbx9fmQ (envelope-from ) for ; Sun, 19 Jul 2020 19:50:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B10BF9403A0 for ; Sun, 19 Jul 2020 19:50:14 +0000 (UTC) Received: from localhost ([::1]:34366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxFK7-0008MW-Py for larch@yhetil.org; Sun, 19 Jul 2020 15:50:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxFJy-0008L9-AM for bug-guix@gnu.org; Sun, 19 Jul 2020 15:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49776) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxFJy-0000cc-12 for bug-guix@gnu.org; Sun, 19 Jul 2020 15:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jxFJx-0003b4-Uh for bug-guix@gnu.org; Sun, 19 Jul 2020 15:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42333: Emacs: error on guix-emacs-autoload-packages Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 19 Jul 2020 19:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42333 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 42333-submit@debbugs.gnu.org id=B42333.159518814513754 (code B ref 42333); Sun, 19 Jul 2020 19:50:01 +0000 Received: (at 42333) by debbugs.gnu.org; 19 Jul 2020 19:49:05 +0000 Received: from localhost ([127.0.0.1]:33089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxFJ3-0003Zl-1o for submit@debbugs.gnu.org; Sun, 19 Jul 2020 15:49:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]:42204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxFIz-0003Z8-Rw for 42333@debbugs.gnu.org; Sun, 19 Jul 2020 15:49:04 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 77C25160060 for <42333@debbugs.gnu.org>; Sun, 19 Jul 2020 21:48:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1595188135; bh=GAjVBIqPwSPDbk0V/ipBNVOZlsnApCBDI/R1FTcTQCY=; h=From:To:Cc:Subject:Date:From; b=nzB0NlR1/Z9NviTgA0ArSM8WI3G3kNK4L/eODbtvzoWQgo+gzLaRv8jSP4OXIphD0 vImmMjVvFtANnzfFB/5ydEdZpiHeIxUWkTvk9e3tu7YxcxyOsvvDE1SK+rq7lDa51E Xz9m2PkHkoPhjVkTmoEueFj/bZLBNkxXev+JkAIvD3ijsp8CMyUp5Br91/SIcl6Eti 5tMULsqOHo97bIrre6Af4M9QMxKrmJOBiRQQTcfvivdmxUIjezeCpRyPXfL3nepG8L h+JvizexH0MSAVX1JOv77QfDX3lpL9kZ79OGeugptLJfYrjb8Hr2eODnXhyefy+/Wm 7FZ5CCTaUwhgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4B8wQt5NDrz9rxN; Sun, 19 Jul 2020 21:48:54 +0200 (CEST) From: Alexandru-Sergiu Marton References: <87h7udm49d.fsf@posteo.ro> <87r1tgj144.fsf@posteo.ro> <874kq8kar0.fsf@gmail.com> Date: Sun, 19 Jul 2020 22:48:53 +0300 In-Reply-To: <874kq8kar0.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 15 Jul 2020 12:23:47 -0400") Message-ID: <87imejl1zu.fsf@posteo.ro> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42333@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.ro header.s=2017 header.b=nzB0NlR1; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.ro (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: I/0lyo3w0M6Z Hi, sorry for the long time it took to reply. Maxim Cournoyer writes: > If you could come with a minimal reproducer, I could have a look. > > Otherwise, I'm afraid there's too many variables to keep track > (emacs-doom, possible conflicts with Org when installed from different > places, etc.). I managed to gather more information as I found another person who had the same problems as me. Steps to reproduce: - Install emacs and emacs-telega with guix - Install Doom Emacs (https://github.com/hlissner/doom-emacs) - Start Emacs and try M-x telega RET This should give you an error saying something along the lines of "No file or directory." Even if it doesn't give you this exact same error, check what I say below about load-path. It seems that Doom plays with Emacs' load-path. Telega is just a concrete example of an Emacs package installed with Guix that isn't working. You should be able to find problems with many others. When checking the value of the environment variable EMACSLOADPATH, both the result from the shell (through echo $EMACSLOADPATH) and from Emacs (through (getenv "EMACSLOADPATH")) seem to be equal. What is not right is that the load-path Emacs Lisp variable doesn't contain the paths from EMACSLOADPATH. What fixed it for me and the other person was adding this line at the end of our config.el (Doom's config file): --8<---------------cut here---------------start------------->8--- (mapc (lambda (p) (add-load-path! p)) (split-string (getenv "EMACSLOADPATH") ":")) --8<---------------cut here---------------end--------------->8--- This is a hack but gets the job done for now. I thought about this problem being caused by Doom's envvars file, but that file contains the correct value of EMACSLOADPATH and we saw that querying that environment variable from inside Emacs gives the correct answer. Finding the root of this problem will be beneficial to a lot of potential Guix users that might ditch it if they see their beloved Emacs config doesn't work well with packages installed from Guix. Cheers, Sergiu