From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yPUFGQuKoWXliQAAkFu2QA (envelope-from ) for ; Fri, 12 Jan 2024 19:50:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KDLEEwuKoWXXywAAe85BDQ (envelope-from ) for ; Fri, 12 Jan 2024 19:50:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ME+60gGb; dmarc=pass (policy=none) header.from=gmail.com; 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=1705085451; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4hcAwj3lKzn8qFA2F1zDiBuSyJSc4F8bVtinHUcfZAI=; b=Hs03MccyRCSSflR8RycQ3zJ4IX1sKF17u4WyzFnujamm2Frbt8BrGsrHJz8wLJZoblcBp3 N+6vAovLDVq56aJa6a04WoYT6Nz61GxRYN1lkl1JdMb0bCZ+mpO4r2CxqTEljN7saF1J6T MWmayhlOOKBTF4luiX8PuEltYqLzioJYUji/ZVF+d7vvppChBhqfvd6r9ohQdmGm9vBOw9 cpUyrSOk93Htb/twjmSAaf4skC5uhLK13H0G6Ahz5aXRHW7WIqRMMrGindqb60emjDHjpJ bjqYpUuEqHoQeIUeWTX1uVXSVI37n5K+uf6WYZm2gW5quD6yTbF1Vb7qSS+dAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ME+60gGb; dmarc=pass (policy=none) header.from=gmail.com; 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=1705085451; a=rsa-sha256; cv=none; b=S6Yo05Yw30J8DGhJEAdzPtqeSxTntpxXI/F00cqqY+Hf3xlnlSRMDDr7+rk0lJaaYqBvbC 9ZlZ9dn97V8BMTdZPE6ITjzfiYna6W6f0AUhlEDmb60cPh78DdxHLykzx1zi+JpAUF6OLr spAiw0/oPJstOtZ5qY/q/Nw1yiTKFE/zzqr5+ftYLLBOToLuvaTaRGXWl7Dfaunagc1pHF cLory8FAG16R9GYedDCl9TixlbNLwIfwX0xWb7Dy0cZ0wVu0HBA7HE8AiY6+A63KQL3d+K 2zpC+oWTrEeaNx5uaY9kRi70Pi/SeuSdnf4cTOVC+bgFUVjOiMQ1aY0OnVbX6Q== 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 CD4DA60FE6 for ; Fri, 12 Jan 2024 19:50:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOMbW-0004Zz-QX; Fri, 12 Jan 2024 13:50:06 -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 1rOMbU-0004ZS-QN for guix-devel@gnu.org; Fri, 12 Jan 2024 13:50:04 -0500 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOMbT-0005Z3-4L; Fri, 12 Jan 2024 13:50:04 -0500 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6ddec302e68so719915a34.0; Fri, 12 Jan 2024 10:50:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705085400; x=1705690200; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4hcAwj3lKzn8qFA2F1zDiBuSyJSc4F8bVtinHUcfZAI=; b=ME+60gGbl7aSa+DDMloRz3mN0UTsE3Qwk40WvYbgAOBcVyMYG+TInAwB2u0MqI/r6g 81kKEHCc8/bBFZEEtNbfWx+LEjxmcPQqkbB4J4O1qUg6Nyz+1FtvOOczeiL5BipG2pJD axxkgj2r5XCI5yrlJfttrNuWhfDAd3mcbLAIjWzBfpo2+cVHI29Y6DCraLlCUeg/mqGI S16lssNWFGVNj+F1isX4X980v99Ja83y8Sf3OnNBCO97PqbgTVOr2QIvZbWhai+eUa3L A0VrLgar45CDQ+Gtvkdorva0ipDIaS18CrBXouEQRWSJEsGBTGmUb5S/QcGW4hNFgDZH wLgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705085400; x=1705690200; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4hcAwj3lKzn8qFA2F1zDiBuSyJSc4F8bVtinHUcfZAI=; b=kqcsxIuo57UV4AKEsJ/YzxqOtgrQC7UDQud0p4X5xP92QvDs0km+yIPWI7i6jWqc0s jy6mwbigreGm4OU88zkUNm8YrFSk9lk6gJltfKqynAsfNiSB353CwGorTltKfne8lZeA MF8G546CXT5Tso3gJsvb1dT8qrant0l1rl2YFg5jmYqH0ut0wLaMJjwr7IZbX8bnSCTa S/ps8AVrSNu5hFZ+6UIEvvheSLkYtKRa//AhHK6xj7/DAFykoBn7XhdCPsF0PivSRXEF IHmbmmMkca1dv7K+338SIfHUiiPvmHS3I8L1XcnD8+L+YnjFEVC4uXIibbp3u6AraR7Q 43QQ== X-Gm-Message-State: AOJu0YzdDdSC+gh8r0PY9MYtvtdoLgdUbYCDRFE7ioDA4cJLhbUWBr+D y/d8lYeOvcM0VDfHYhHB1NFT3yKV5fRX5UXxC/w= X-Google-Smtp-Source: AGHT+IFqxuPpS6XNgelVWWnq/zkVYMMrWGl61rR1kiF+oLzrGFpvPCyYARc07eJwY/FQWhau5gVonDdtYePEIz6m1y4= X-Received: by 2002:a4a:dd8f:0:b0:598:b2d7:2499 with SMTP id h15-20020a4add8f000000b00598b2d72499mr2666639oov.0.1705085400247; Fri, 12 Jan 2024 10:50:00 -0800 (PST) MIME-Version: 1.0 References: <86wmv0o5gi.fsf@gmail.com> <416a6472edf6d2123c47ea5b555bedd005f6ac6f.camel@gmail.com> <87r0kpu3d9.fsf@gnu.org> <246521d6a06ee6954372278b8507c346fcc068cb.camel@gmail.com> <86h6lg3gq0.fsf@gmail.com> <87r0imyjvp.fsf@gmail.com> <37da112158ce2ecd4505742c573af37e74c271cf.camel@gmail.com> In-Reply-To: <37da112158ce2ecd4505742c573af37e74c271cf.camel@gmail.com> From: Simon Tournier Date: Fri, 12 Jan 2024 19:49:49 +0100 Message-ID: Subject: =?UTF-8?B?UmU6ICRFRElUT1IgYW5kIOKAnGd1aXggZWRpdOKAnQ==?= To: Liliana Marie Prikler Cc: =?UTF-8?Q?Ludovic_Court=C3=A8s?= , Guix Devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=zimon.toutoune@gmail.com; helo=mail-ot1-x330.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.78 X-Spam-Score: -7.78 X-Migadu-Queue-Id: CD4DA60FE6 X-Migadu-Scanner: mx12.migadu.com X-TUID: y62+33Hz6y57 Hi, On Fri, 12 Jan 2024 at 18:39, Liliana Marie Prikler wrote: > > Well, I see how to write specific Scheme wrapper around $EDITOR; as I > > did in [1]. > > > > Or, I see how to tweak guix/scripts/edit.scm for running specific > > launcher depending on $EDITOR. > > > > Liliana, could you provide a proof-of-concept about =C2=AB the shell-es= que > > "${LINE}" and "${FILE}" that would get replaced by Scheme code > > looking for those strings =C2=BB? Because I do not see what you mean. > > (let* ((editor (getenv "GUIX_EDITOR")) > (editor (string-replace-substring editor "${FILE}" the-file)) > (editor (string-replace-substring editor "${LINE}" the-line))) > editor) > > with the-file and the-line being placeholders for the actual variable > names. You could obviously do smarter things with gash, but let's not > go there at the moment. I do not understand how it is different from the wrapper I already did: https://gitlab.com/zimoun/advanced-packages-2023/-/blob/main/vscode-wrapper= ?ref_type=3Dheads#L70-99 Cheers, simon