From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6G3+LYzAb2MyMAAAbAwnHQ (envelope-from ) for ; Sat, 12 Nov 2022 16:49:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uP/nLYzAb2OC8QAAauVa8A (envelope-from ) for ; Sat, 12 Nov 2022 16:49:32 +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 7990A10CD5 for ; Sat, 12 Nov 2022 16:49:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otskt-0005Qr-Pf; Sat, 12 Nov 2022 10:49:15 -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 1otskr-0005P1-Su for help-guix@gnu.org; Sat, 12 Nov 2022 10:49:14 -0500 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otskh-0001Oz-Gf for help-guix@gnu.org; Sat, 12 Nov 2022 10:49:04 -0500 Received: by mail-qk1-x72d.google.com with SMTP id v8so4985662qkg.12 for ; Sat, 12 Nov 2022 07:48:57 -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:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Sxga7WN8SzZDvf4IDdajBYBbG9j500QhjvgwC+dTGRw=; b=G1dSEBQ7GtJB1FBJnAtanGFkVkJeGjqV80wgHyZiZeATvNG/kaLcJaqcWPNciYtm9t sFB0mhMj487lv+kOMInejeNERrZeFwOImPcU76K2vWkFmCuOM6GvGz+u5gLX5qkjNu/R HKkCW25MlsUObwGSG0Af50+rmo011xacc/893VkaALsvc0Zgi8Dn8LjkEW1qmmPSW8OF sQDsTnbnsZSfku9D0aXWtcIim8u53YUYlmAYHykzicCh9yVrl1luIs7nQNwac04ghMQ4 ukbWl2pf8CaJCm1PvM2CFcvWBqeWGcn4pDu0aRThqoYkSbGw7Ery5EAgS8DSWZ5kT237 dAZg== 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:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Sxga7WN8SzZDvf4IDdajBYBbG9j500QhjvgwC+dTGRw=; b=YOqvlm76Xd6xxXHp3rsa5Jqro6E9dKIE0IjjpWb3Bi/xDvJcfgm2oQLwdEVoi0sCcd O5rerDKijBlFWUWwml096PYXtpJCwVMgwddCIcErnYWIf1U8RwQhRqGliTxm4x8VMfyt zxMmnYVSfE7Y6zzwYfSr1vJkBa2AWIHALRKJz26TdprDHbZnItzW8jHKGdfnE4b5jbHZ 59M8ccd3X86LY0t3IhxhnG/7MqBwapU9eunMXIkewUHkEZy5wJkRsAgvWpL/7jz2Op3G QSGHGXCNGz9qTXKPiGQIAOr5ew6ZCDZZ4z2yhJRq4w4KHQYqUBgzXScSJTs7wDq3/Lww oUCw== X-Gm-Message-State: ANoB5pmY3o5DsGpvJzyVP496chBF7kzVjpIl+3T7myYFosJifcHaZBSM bGyS4yQREOrN+fHYnh2++K2rj5DzFpY= X-Google-Smtp-Source: AA0mqf74IOmGdNY1aBUi5xaBIlrJ8sydN40lEfX7IN8HTyAqW+iP9C0bjrQyUVTR3My1YbeMSDqLHg== X-Received: by 2002:a37:bc03:0:b0:6fa:31d1:a13d with SMTP id m3-20020a37bc03000000b006fa31d1a13dmr5088047qkf.244.1668268136328; Sat, 12 Nov 2022 07:48:56 -0800 (PST) Received: from localhost (237.sub-75-194-224.myvzw.com. [75.194.224.237]) by smtp.gmail.com with ESMTPSA id b3-20020ac85403000000b00342f8d4d0basm2923629qtq.43.2022.11.12.07.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 07:48:55 -0800 (PST) From: Jake Shilling To: jgart Cc: Guix Help Subject: Re: geiser-edit-symbol-at-point In-Reply-To: <20221111181230.GD31484@dismail.de> References: <20221110193527.GB571@dismail.de> <20221110194440.GB1732@dismail.de> <87sfipd0kz.fsf@gmail.com> <20221111124046.GB17675@dismail.de> <877d01dxxt.fsf@gmail.com> <20221111154213.GB25240@dismail.de> <87fsepqh80.fsf@gmail.com> <20221111161518.GB27159@dismail.de> <20221111180749.GB31484@dismail.de> <20221111181230.GD31484@dismail.de> Date: Sat, 12 Nov 2022 10:48:54 -0500 Message-ID: <87cz9sqil5.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::72d; envelope-from=shilling.jake@gmail.com; helo=mail-qk1-x72d.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-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=1668268172; 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=Sxga7WN8SzZDvf4IDdajBYBbG9j500QhjvgwC+dTGRw=; b=Jf3r7VT1Bt84GrOzTRuWZfkmxLQDm9+D8uSeBlQdnKcgf1lLL/MeIDao4cxySLFkqIYEzw apEOYQqzH+AErWtQkh65+8mQtgbCJrwVV/DdxfmEv1LlfPQieg3tpDklJc1Yrnk0a1vKLG qS/38nVuteaWNQnZnJkZNvb4MnWYczKOnTk/9qK5Ged6Gs04YVVTLx7iP3k5Ar6ChnsNmR PCV6DDTtQVMtyrJF+etanbSkhge4fSjtSQaVZKPBWwO3Wdu4V0yTD2F/I0fAEB0mB46+Os 2facbk0F2pnmqVtILofkz7xMaN1FfBk0BWZFWmEQuQtZPYQYHLcBm9qpeAYdtA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668268172; a=rsa-sha256; cv=none; b=fS3ayknQVPzpTeb1JBft9ywllG44NOjDA/Q3PdpdtjQOPDuavzgsnp742VIRshze0XR8vx 0wDQ8s27o8kTDVzhe88beWv8C+LD9Xi22kDvPZQKvVuoQ8c12D1QylScZo8pvRKNN7xpA2 2s5EBWk/M2SA6ZAzlXL+nw8zk8j7Apq+joJZb3kxS+0quRsfeADXY3CuNGA0IYgwcQwcRJ XpsV0y+WfEpTcSunQaYDE4yU8EG2MG54I5LurJAHUb9yVEmDcE9uZkPMWLp4ETAHx9cZCU DSxGIIQjLh+a42OdofHIv0aNKkaW80fKM/N47JR+3nqNOHxdSpc69EQ99x2skQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=G1dSEBQ7; 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: -7.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=G1dSEBQ7; 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: 7990A10CD5 X-Spam-Score: -7.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: iENhUOY5Pe/Z --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2022-11-11 18:12, jgart wrote: > But this doesn't work for geiser-edit-symbol-at-point because it is guix = API code: > > (add-after 'build 'install-xsession > ^^^^^^^^^ `add-after` might not be the best symbol to test on, because (with my limited understanding of scheme) is not defined to be anything--it's just used in the pattern matching for the `%modify-phases` macro: ``` (define-syntax %modify-phases (syntax-rules (delete replace add-before add-after) ((_ phases (delete old-phase-name)) (alist-delete old-phase-name phases)) ((_ phases (replace old-phase-name new-phase)) (alist-replace old-phase-name new-phase phases)) ((_ phases (add-before old-phase-name new-phase-name new-phase)) (alist-cons-before old-phase-name new-phase-name new-phase phases)) ((_ phases (add-after old-phase-name new-phase-name new-phase)) (alist-cons-after old-phase-name new-phase-name new-phase phases)))) ``` If I'm reading this right, I belive that this macro is looking for the 'add-after symbol--as a symbol--and not looking for any value referenced by it. I am able to run `geiser-edit-symbol-at-point` on `modify-phases`, but not `add-after` (or related). I should also point out that Geiser only recognizes `modify-phases` after I've already evaluated the evaluated the form that imports the (gnu build utils) module. If I simply open the file, start guile, and try to edit `modify-phases` nothing happens. Geiser needs me to evaluate the (use-module (gnu build utils)) bit first. =2D-=20 Best regards, Jake Shilling --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEETgkkkGxzdwUBX+jR7vAMAFB0hsFAmNvwGYACgkQR7vAMAFB 0hutzBAAvyAza/bGQYTq5hFenhqez571O6nPc0T8c5E+QY181pIRgPnX3eicOpO3 WWqHLrxVhx/hUv3oyrxYAelOhm/FdgI2iTRMJZQRvZ2sSVCM02KXQ3yBXnfeb8M6 00WhG2Q9DcZ2MP/lCqXyhYT39mwnYUcjOWR1/c/lKkJTCDV9O6rwon6A1wcQ8Fm/ p17izhNxsH6BMpQ5ahehoBfs16IJoqHN0Vog/R3BkepXscsStgFdLdXFU/7ynD6c fMeqEwZMkD3Gv2SZGpAIeH2NMGRI3pSRN/ssaAm3XccJn+H1fTSfbkQZCDZWXmob AKje693j4C5iJ3LL+bKtpJn8DM16I557ZCNAbKhZBJZiwzY9jamDFqBv0VY0FiBs 59V50TQtzIDfSNxlbj2NXiigrBQuc3DXxsUdjFcckwvFEvzOKdgrUEAEIDNKBY+m n2EkxRqzwhVu/nTvDjAHjP767ejZ+PBMHEK4/8mf7n3+GKq5h6nnJKEKoAYaEesj p5zLah2Q9lDe7XwFN+wFg6UBwaioYC6YwAMKndVnuBSEBmJOyxskMQUDQS08CU6U VRe5ULODQ1BUGJK1d9xdhyq9uSri0F/pKz0bdpurH5GKh3BaqkFClZ14g5wW/XZA UnCzpRhDHQqZMYkCvE3Cq5TTmK+hPol54G0KTgjmtnowYP7g0JY= =6M/C -----END PGP SIGNATURE----- --=-=-=--