From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4EOTG/g8XmEYHAAAgWs5BA (envelope-from ) for ; Thu, 07 Oct 2021 02:19:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6OI2F/g8XmE1CAAA1q6Kng (envelope-from ) for ; Thu, 07 Oct 2021 00:19:04 +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 83538FCF9 for ; Thu, 7 Oct 2021 02:19:03 +0200 (CEST) Received: from localhost ([::1]:51378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYH7m-0003Q8-JS for larch@yhetil.org; Wed, 06 Oct 2021 20:19:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYH7P-0003Pz-RF for help-guix@gnu.org; Wed, 06 Oct 2021 20:18:39 -0400 Received: from out0.migadu.com ([94.23.1.103]:64495) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYH7L-0004cA-Ce for help-guix@gnu.org; Wed, 06 Oct 2021 20:18:38 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1633565911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PgcDeMARR+7tsscvMmPJm4FLomVGM/9FOMYM/VcbZV0=; b=konQHFcY+nTlblQ4x/SJlVehXXL/OjmNSYgO97GjL9WzIvlSOEIPd2FmIusSoTeWD+FBzR VfK4WRiWGKCD6rgNwhdwiMDI8txzsJ9k+y1pQvpYn9bDWuza2SokbEZABZLb98vmEvH8J3 4ULQRajH67ZsIp8WUHv/7ZPpeUDwWV25+ozI/xAw6+cdYQxAymisTZPbNy6Oqi12Fa9bbh 4hEngJy2VgdVYN9mFHDaUAfgIQkoMd4LtkofS9MWAgaFTp7EygBOgfRWaFjAERMLaZBD1s qdLO8eiNWdl23SiVvexyFeblMQOQRjxfn0Y3n4A+cEJuJb38yCuaUlVirrw6TQ== From: Kyle Meyer To: jgart Subject: Re: Using emacs library with guix environment In-Reply-To: <20211006150428.GC9839@gac.attlocal.net> References: <20211006150428.GC9839@gac.attlocal.net> Date: Wed, 06 Oct 2021 20:18:24 -0400 Message-ID: <8735pd3cxb.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=94.23.1.103; envelope-from=kyle@kyleam.com; helo=out0.migadu.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, 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: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Help Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633565943; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PgcDeMARR+7tsscvMmPJm4FLomVGM/9FOMYM/VcbZV0=; b=njbJ5zPNT2rdEZB9EFAtBrE6a4jU/7uzxCVU4O8p90WyzqYaBGHpLxG4LfjM5/yE+8uIAo JtyS7k8PLP/No+mlzDQ4zgwdc0Kmr37DW44pRhM9YEUXTDyNLDoyla8CDFDr+dfNujG33s mF832UP1R0AOfZXsEhqu39wOzP+y0Zc7khJBUDPRQRPelhw4RS8nMPkUaI8Ek/0DDkC9Y0 8kovfaMXk6g+6QJNig3H8jeOeNjGJN2iem5b92siMsDhb/fvJxMv4yj6nGtwr1nL+iIWI4 eMojROC4XcI4VL2XyDdmVKn4PHRM+PalgJ70FCdiJns2OrFawLHcbvASOl89AA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633565943; a=rsa-sha256; cv=none; b=UxBtBEL2kAgv0YnP2LN+3iVzVRLmzZDf8Dylbu8AQdECJxDJXOtxDBzB0lCKBOzlBoC2GZ oBDypWD8U+dOjxPLry+AB0Mh6uGtkmux2jdwCTXM41gKirKTcMYHOpdPUkKl4DJC/AVS2Z JOguE35oVghtmwowpla2yzoTckkMckGP/Ew3QKnVKlGpLKHqNJJadZk/uH5bHe7REeT/Ce wGhYe3M6jmW0FztrKQoo5y6pK78l+OAfIuLnKEujE9aJqByhL9lM0jOWB3Y9LNCZ4JpYCv 2iDH5ECywUP8DzzfUCOvb3I0UYgnexhgV+QtUIiJKsYsuZli2H/lBpEHB7iH+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=konQHFcY; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=konQHFcY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 83538FCF9 X-Spam-Score: -3.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: pLRaD6RSl+g9 jgart writes: > I'm only able to properly source the library into the environment if I run > the following: > > `guix environment emacs-commander --ad-hoc emacs-commander` > > Why do I have to provide emacs-commander twice to the environment command? I believe the key package that the first emacs-commander (the one before --ad-hoc) brings in is emacs along with its corresponding EMACSLOADPATH. Notice that $ guix environment --pure --ad-hoc bash emacs-commander -- sh -c 'echo $EMACSLOADPATH' outputs nothing. Now if emacs is added as an ad-hoc package: $ guix environment --pure --ad-hoc bash emacs-commander emacs -- sh -c 'echo $EMACSLOADPATH' /gnu/store/qg6rsw6w587aykln2dzssr43nl6jq1a1-profile/share/emacs/site-lisp Or another test, dropping --pure to be closer to your initial snippet: $ guix environment --ad-hoc emacs-commander -- \ emacs -Q --batch --eval '(print (locate-library "commander"))' nil # add emacs as ad-hoc package $ guix environment --ad-hoc emacs-commander emacs -- \ emacs -Q --batch --eval '(print (locate-library "commander"))' "/gnu/store/kr9cnw5c9nydiilb25w3q5bnp5c1zvca-emacs-commander-0.7.0/share/emacs/site-lisp/commander-0.7.0/commander.elc"