From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WJ1HNoet8WT0MAEAauVa8A:P1 (envelope-from ) for ; Fri, 01 Sep 2023 11:23:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WJ1HNoet8WT0MAEAauVa8A (envelope-from ) for ; Fri, 01 Sep 2023 11:23:19 +0200 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 8E021446CE for ; Fri, 1 Sep 2023 11:23:18 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=T8S+VvKf; dkim=pass header.d=wolfsden.cz header.s=mail header.b=T8S+VvKf; dmarc=pass (policy=none) header.from=wolfsden.cz; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693560199; 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=HJMv0IWEax3e+eNJZoQRVl7fELvtH4/mSFaSRbyh2fI=; b=mN0nj/V4jluOaQv7Am72+vaSk7M6gou4PffpULyBUpY6sbHhRGQrKCQJvDnUqbRWCFGlRF KICBlZiD7cQrs/ECnLmV57ZqWPnGvku3CmZXq09SQsr88xOMmMga/kAiLgkk9HN65Gurg7 5qj/aHI40Sls1Mu1YT2GN7hPi197bCB5bnksLwD6+AGQjWghIWKNA6tdlYlQ6hVGQ7pvuM AobdxOGiJ85sgnruTxRuPMDFtyuFpGRfZdp8DUoO+UO040feDnLXLE/2pz3KuYKtO2lggX yvN2DnSxg/+Y2JojhD3pkzsSBZwk5W5T1fifhnnY/HUWd8sXbeULojdUJ3WruA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=T8S+VvKf; dkim=pass header.d=wolfsden.cz header.s=mail header.b=T8S+VvKf; dmarc=pass (policy=none) header.from=wolfsden.cz; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693560199; a=rsa-sha256; cv=none; b=Dul9C/NHCw1lwJ1yYY4Pj0VnIyS59dxVRseu0TPvp4L3fM8BRxGbundl34za/xLxyUOutZ W4Tq6rrZk5sUcOExC3/7B/D4HR3UOdUzh8LQvaR1NGmOojzyH7IE53CfkwLbyC6gELqCMK 4GMM/izZRazPGzT+LrZqsrH/mkHpSv++aEfbNzqQbnVS0ytY6UTPqU6wEHluVP0AecJB1l 5XENVGXG/28WxwNf5DLy29Tb2OxzI1mRjns4UB5mIwNJI5PZkgOSbjDOtoxvYW6jcOt9gh 9WLDAprP6C/BJsJ8KtlcBOoaPtM6K5ADMLCCZxLXh2DYvcO50tzheWphYFJGCg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc0Mk-0005cx-Aj; Fri, 01 Sep 2023 05:22:58 -0400 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 1qbn4P-0003ct-PI for guix-devel@gnu.org; Thu, 31 Aug 2023 15:11:09 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbn4L-0000pL-0Z for guix-devel@gnu.org; Thu, 31 Aug 2023 15:11:09 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id EE4F027A14C; Thu, 31 Aug 2023 19:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1693509059; bh=8Cju1aqSQGRj/UssRqHcXPdZ6V1snAKUgf6bk0i71yA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=T8S+VvKfQHI5sdQK/CUJJuiv73U99/NjHZRUUJIlOxeKKZySVVT26oBbOIUK9hMDd fWXD12tBrfDIpKrFxNWfuGS9erigEhkUnXsa39HdmNa7RsyybnXOrjZhgtnpBHayHZ GTmVCpeysQcXwc6goSvCygFW/plvRTmkoA22SahAQS1CCE02IRU47p0t5990gtKxz0 6k+1xIp2jHG6y0Bz+3lgnGrLxM71+yt+rZS4w5ME/pr+bWt3OrrEzsDPTvhedYrNwe oIf+EJew9ik9lmqW1MtSI33plv+sBFhrRa+5upUMwGauNP86zeEtEist/Q2ogyQI2X rmUont1nW89cmQrzvQ5flGQHXW7xiF2DZA7U0AOkijcJ0eWbOY/tbCVy5WGr0hSKuy w/wbYydZcJkmeOQ0YvbNpXvcntTD529R/K/Wsh3P7SK2jUCgsQS5+k/3s1Yun2Dg2c lRTUdq2oJ1OXXPE967GUi8Hsy9vp94SDjzE3vHMiwKQ1CDLdu6L3nA4eJzFZm9QTdF I7WlqE3Wq5IsjSXyDqXEKk7TgRAj7UDiBkWOXp+9RI9y5943Rd5DQHvUJs3pW/YLE1 ypipXVgfd1MM5btSGYHPVWuCayxzMRihlYSfonNRlCiVSfYz6PIxnvE1yWdQ+AQLLa GAso0WbHWbpcOz/ka1PSSOEk= Received: from localhost (unknown [193.32.127.156]) by wolfsden.cz (Postfix) with ESMTPSA id 707B72793DA; Thu, 31 Aug 2023 19:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1693509059; bh=8Cju1aqSQGRj/UssRqHcXPdZ6V1snAKUgf6bk0i71yA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=T8S+VvKfQHI5sdQK/CUJJuiv73U99/NjHZRUUJIlOxeKKZySVVT26oBbOIUK9hMDd fWXD12tBrfDIpKrFxNWfuGS9erigEhkUnXsa39HdmNa7RsyybnXOrjZhgtnpBHayHZ GTmVCpeysQcXwc6goSvCygFW/plvRTmkoA22SahAQS1CCE02IRU47p0t5990gtKxz0 6k+1xIp2jHG6y0Bz+3lgnGrLxM71+yt+rZS4w5ME/pr+bWt3OrrEzsDPTvhedYrNwe oIf+EJew9ik9lmqW1MtSI33plv+sBFhrRa+5upUMwGauNP86zeEtEist/Q2ogyQI2X rmUont1nW89cmQrzvQ5flGQHXW7xiF2DZA7U0AOkijcJ0eWbOY/tbCVy5WGr0hSKuy w/wbYydZcJkmeOQ0YvbNpXvcntTD529R/K/Wsh3P7SK2jUCgsQS5+k/3s1Yun2Dg2c lRTUdq2oJ1OXXPE967GUi8Hsy9vp94SDjzE3vHMiwKQ1CDLdu6L3nA4eJzFZm9QTdF I7WlqE3Wq5IsjSXyDqXEKk7TgRAj7UDiBkWOXp+9RI9y5943Rd5DQHvUJs3pW/YLE1 ypipXVgfd1MM5btSGYHPVWuCayxzMRihlYSfonNRlCiVSfYz6PIxnvE1yWdQ+AQLLa GAso0WbHWbpcOz/ka1PSSOEk= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 3443fe68; Thu, 31 Aug 2023 19:10:58 +0000 (UTC) Date: Thu, 31 Aug 2023 21:10:58 +0200 From: wolf To: brian Cc: Csepp , guix-devel@gnu.org Subject: Re: questionable advice about Geiser load path setting Message-ID: Mail-Followup-To: brian , Csepp , guix-devel@gnu.org References: <86jztijvkd.fsf@riseup.net> <87h6om9h7p.fsf@spork.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Acly133Q5OJuyUYT" Content-Disposition: inline In-Reply-To: <87h6om9h7p.fsf@spork.org> Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 01 Sep 2023 05:22:50 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.50 X-Migadu-Queue-Id: 8E021446CE X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -7.50 X-TUID: 5vfm47TIGngK --Acly133Q5OJuyUYT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-08-26 07:27:22 -0400, brian via Development of GNU Guix and the GNU= System distribution. wrote: > Csepp writes: >=20 > > The docs contain this recommended Emacs setting: > > > > @lisp > > ;; @r{Assuming the Guix checkout is in ~/src/guix.} > > (with-eval-after-load 'geiser-guile > > (add-to-list 'geiser-guile-load-path "~/src/guix")) > > @end lisp > > > > I haven't been using it for a while because I remember it causing > > trouble whenever I was working on other Guile projects. I have been > > running Emacs inside ./pre-inst-env instead, which seems to work just as > > well, if not better. > > > > I'd like to make an amendment to the relevant docs, but would welcome > > some info on why it was originally written this way, maybe there are use > > cases I'm missing. >=20 > I agree that it's bad advice, since it assumes the only reason to use > Guile is to hack on Guix. I also think it's not necessary, since > =E2=80=98.dir-locals.el=E2=80=99 in the Guix root should be taking care o= f this for you > already. I don't use the manual addition to =E2=80=98load-path=E2=80=99 y= ou quote above, > and Geiser seems to work fine (within the bounds of Geiser's definition > of =E2=80=9Cfine=E2=80=9D, anyway). Geiser seems to add the project root (I assume based on the git) into the l= oad path automatically. geiser-repl-current-project-function seems to be set by default, and rest is described in the docs: (geiser)Customization and tips,= Init files and load paths. Maybe it once was necessary to set this, I am not sure it still is the case. I also use (setq geiser-repl-per-project-p t) and everything seems to just = work out of the box. >=20 > The downside of using dir-locals is that Emacs yells quite loudly about u= nsafe > variables being set. In emacs 29 it should be possible to whitelist it, so it will stop being so annoying. > Another option may be direnv or bufenv? I haven't tried them myself, but = have > heard good things. >=20 > -bjc > W. --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --Acly133Q5OJuyUYT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmTw5cIACgkQL7/ufbZ/ wamM1w//fh5/NeaGWpdbHX7aPJSWFaA6RhuJGWHB+YOOf/ZovywFv51r52mnl2dV z9OmlCBbJyDiUVy+EfTVm2EGfEiNsfjgp2aZ+Q9g7XK1rjZ9qnodeb5JEYI0oHGU o+EMOE/Hi9lDq2UtdCLc75WmnOYP2VINQH6uSHCwPjc1vU2SXv1OHrK0+JM383Xj eHRv4PBbiZHsNaGjWe5vLuddQ8TsW0FSPjKxdyM2KK2oMuXtsZQ8lTnWAC+QafMH Eb5P/HC2RZlDE45Th6qdOhLrC60TInQi8Za1g62zmjgeddVR8WaPw7yVrOKzjyeX lkPT6Sg64QNCyGhsSkty3xEF6mL8ndEFstsWEgtFAaVYJPCEO8jRzfaovImkGVyI 0kxXoc8U+3c1fYG6Fb+Cc+yCOvhdlMgT5i/0vL5y9UP3WTFEyll6SneM+oZwr8gz GoL/4YN/DPSqd0e/c8CAolgBFhq2S8LjwqJAZ8ilubIaCDhsVVXxjqwpjV9GKpwU Mn4UE6spTU7hz8bAHy5zg/whqTrTx0iObMfkNEIOPeXl63dO+egXQ0pgHnkzqpPG 4SabLA8bgkIPtOVqtXTdC/zRfHo5SJPHFJF6d/jWECCq2AgP2aawcikWoi66Cc38 ATnp7PTjriPlY+kuIvxb/ZGPJjdx2KRIheXgHPUyruLDundkhr0= =J3mh -----END PGP SIGNATURE----- --Acly133Q5OJuyUYT--