From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aLtxEIxmbmNbVwAAbAwnHQ (envelope-from ) for ; Fri, 11 Nov 2022 16:13:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sFhBEIxmbmNnXgEAauVa8A (envelope-from ) for ; Fri, 11 Nov 2022 16:13:16 +0100 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 EF092D208 for ; Fri, 11 Nov 2022 16:13:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otVi0-0003uR-C1; Fri, 11 Nov 2022 10:12:44 -0500 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 1otV4N-0005RK-1K for help-guix@gnu.org; Fri, 11 Nov 2022 09:31:47 -0500 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otV4L-0000BY-Gc for help-guix@gnu.org; Fri, 11 Nov 2022 09:31:46 -0500 Received: by mail-qk1-x72f.google.com with SMTP id 8so3066807qka.1 for ; Fri, 11 Nov 2022 06:31:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=MENMnfA42PCQNgK9lyOk7xZaMDhYzbWOMi5Ap/HSCTw=; b=k5acGeig5jsdPu82h7+udlWXXHmZ5YiXeQxdluYJCx5QHoV0aRG3wYLhX0ATer+inV 95EebYkOvVwRedtNKM9OUVaNV2u5wi0FsOew9q5V+iMD2BKsBIRHIflDn1EWVScp6sdH eXRXKlfLpAYJHcGbUhCj3YquHILca+i3iZ5qf2+DbnzTgaKBKr/OJg9k/Lv8GbKNq7Eb SHCv50ZIxTlVMlGDFENQaJtIKZxyccm0QjgrT3BYCYLqzCMWPI9yRuiaopf+TWBNHnuV JQtWefW3zalr0grlNtDcDWe8K8gQfak2rL7AGZVghnOig1s89G0YDlNg+G4LFM03XKYL 7pGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MENMnfA42PCQNgK9lyOk7xZaMDhYzbWOMi5Ap/HSCTw=; b=GShguAs4kqqz9dSW8rB2AXsFcHFmlD6ALlCRQt6aDqIn664ug7Ub+0wthNLCgNr5Ne 0KuomookWNJpuskJFSgNXepHZ4O1jXXbpFjNLqv6Z58L53dDWC1MXHZ1GFfqtQOPCweo NBuOnl+yAvQQDcW7egBskM9quVtahxi8lfTh2krHNGDNhvdF7+e0PcvmB5XdIonh0KjP ZH0aO3WmphHDq9OKz/CgIWHgpuZ+Ug2J2yI2rR0d0GaeKURhYwdTw+plN3zHgnUmxH9u qMGv1bwbpnzpqWOpj0i2nNB3ayR9n3iUswvqoeg5Au6Tofto3HpJ0JAIBuazAwBghv9G h52w== X-Gm-Message-State: ANoB5pkbHUDzcapxKzX5Y1ATSl53y6NYGDFM5NpWU6saCxEdQxRv+jh4 rxjiw9SES1PrCSk82GomB68= X-Google-Smtp-Source: AA0mqf4LxEnLonICjWNMDxYuSA++iSPNcJpXE9X08vYDENYOrwc4o0GQ8oFhZ3F0FK9U6Kn00TxH1w== X-Received: by 2002:a05:620a:349:b0:6f9:bc42:699a with SMTP id t9-20020a05620a034900b006f9bc42699amr1209704qkm.496.1668177102973; Fri, 11 Nov 2022 06:31:42 -0800 (PST) Received: from localhost (237.sub-75-194-224.myvzw.com. [75.194.224.237]) by smtp.gmail.com with ESMTPSA id y201-20020a3764d2000000b006fa7b5ea2d1sm1452466qkb.125.2022.11.11.06.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 06:31:42 -0800 (PST) From: Jake Shilling To: jgart , Guix Help Subject: Re: geiser-edit-symbol-at-point In-Reply-To: <20221110194440.GB1732@dismail.de> References: <20221110193527.GB571@dismail.de> <20221110194440.GB1732@dismail.de> Date: Fri, 11 Nov 2022 09:31:40 -0500 Message-ID: <87sfipd0kz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=shilling.jake@gmail.com; helo=mail-qk1-x72f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 11 Nov 2022 10:12:40 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668179596; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=MENMnfA42PCQNgK9lyOk7xZaMDhYzbWOMi5Ap/HSCTw=; b=fJaPGr+T0FP1XZkE1AFSVDIPUesWUCSD6Fg3LLLQ1j4+YKRzXOvxzA52VHQMP8dlvIbc+8 cEOt+69SJ0DNJpLlTy9RjIysBpDklE9Qa+HiagtVS5GI/Dck6afcdS5AHNRqGiq3icea9J c2eWyZStX/da7D9ebDAB0Sw01jUlA1SEuKPe8XZJePLitce7IKieU+VpljSlMN2aifpZVA RoD6nBphITZp3LXMvElY/FYKP3lE403cxOP+ptJus+0VPqaL3F1kbMamIzHxARlt+utPBs MMamc1uHhPuLJc0mOnFVrRN7N0tFv/FY+/GpnBktnglU2sz7XY9AK7jCoUkI+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668179596; a=rsa-sha256; cv=none; b=d5OPj1jUI94hQe4n0u9c4GUWxra0g8Oz+a5+CH2cHpVUFT6rF6I5FnzgwGjOizI3S1fvgq AeBE656XJha75W9yhQwqPbP5P341ot8AV2aQsmeE1qXZ9WA9DpaWPFFpmb6k9rECT6oCuQ NnRpn53XQ+QFP/MkKYAs+KhjVp/8vwfnjfrZCQXunbOdVRkFq6Cia9EUZhGJvk6Auvj6wa Zfw4lD16QQO0A+xF/sD1v232vtr//Qe2aCgCP8CQDNZeTfzQlpKnr39sfKU+0S9Dc2fc5K A+b6JnWtL69+wUmUAPo8/66hV/GBZNvaJn7DkxtF8Ni6cVuvsKGvmrVfA60m1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=k5acGeig; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=k5acGeig; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EF092D208 X-Spam-Score: -5.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: KAuKMbhooZXv --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I don't really have anything helpful to add, except that I believe geiser doesn't work the way SLIME or LSP does, where there's some process parsing a project with semantic awareness. Instead it just launches guile (or some other repl) and parses the prompt string. As far as I know it is really just sending text back and forth between a scheme-mode buffer and a runing repl. The load path has to be set for each project because the guile repl isn't aware of any project structure that a particular file is a part of. It is simply going to parse whatever text it's sent within the context of whatever %load-path it was initialized with. That %load-path can either be set with the GUILE_LOAD_PATH env variable or by geiser-guile-load-path which affects how geiser launches guile. The way I handle this is by making sure that ${HOME}/.config/guix/current/share/guile/site/3.0 is in my GUILE_LOAD_PATH so that whatever channels I've pulled in the current profile are included in any guile repl I start. This gets around needing to have the guix source cloned down somewhere else. When I'm working on my configuration files, I have a toplevel script which updates the %load-path: ``` (when (current-filename) (add-to-load-path (dirname (current-filename)))) ``` So when I load that file into the repl with C-c C-l all the subsequent use-modules work. On 2022-11-10 19:44, jgart wrote: > On Thu, 10 Nov 2022 19:35:27 -0600 jgart wrote: > >> (with-eval-after-load 'geiser-guile >> (add-to-list 'geiser-guile-load-path "~/guix")) > > Also, why does geiser want you to set up the load path manually for every= project? > > I'd like for the experience to be more like a language server/eglot where= I > just enter the guile project and xref just works if the mode is turned on. > > Why is this not possible with geiser currently? > > =2D-=20 Best regards, Jake Shilling --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEETgkkkGxzdwUBX+jR7vAMAFB0hsFAmNuXMwACgkQR7vAMAFB 0hteTg//UGuqpSIEAmZKh0geiPhygavZD+VlzPk0Dylg8dXIOIxPjAj71m8t4Av+ 6FB204j4HktBbXwf9f3/+6P9fpCwGvA9EnB18bQoWomw4Gr7zT/Id4PP+eHjJiE8 T4kChrVYvU04uYmWGduByhNFIE4n+p13NlOOUJyJWs8pHRueV3s0v8+llE1rnNn7 Db34NzLJQPorv5jWiB5RTrAcQxIz3QfG1BrslRC/lbVplnIB8hJdmAdLcR9HTd0P JFJs/UmUepvCn6lhLkfH09AzU5rjk06Z/6uH1gDNLD3DfM4esVBH72DmgNBG1BeY P06VsGkvB7nEi0lURx+rLNzJC6w/Hch6Q7rbCGdyoCJbAeOlTg7y6mAttLSF6pMW SyCiuVM8jKfan1SBpKesmF85uoiyJI/hUQ1827p8PCDmKjYm6UunDDwHZEVYEKSm 2MdjKTuOkMtlIFdntQq5hiotk/maSJrpF14+VGdosYpb0PzYSqnfVcSdqM7Ulejk swr73iMTQ6f2ivMa3zJnvDYv6OKuacokyKirBssSOCBTlV/+vq+nZejnV95uFgfr ryEFNSNHGJ4HEsy5SAZ0FdZcq7Drq+K1EGybkNFZAugK47aG9w+lRm+1USdjNPey LGfnOJb0+3p1ttV2TC7bXLumIfKa4CGWJi0W32E9E25GmGJtZMw= =gWz7 -----END PGP SIGNATURE----- --=-=-=--