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 gMRmDjKXoWUBPAAAkFu2QA (envelope-from ) for ; Fri, 12 Jan 2024 20:46:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OIcoCTKXoWUgigAAe85BDQ (envelope-from ) for ; Fri, 12 Jan 2024 20:46:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YEzzF03S; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705088818; 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=lhgO5EbBlFdM0rhJgn74hTPoI2UF8n07wrGNs3GVSeY=; b=ZSld4Kg50jn0EL/j4cNGdBqLmR1YU3H2SAg00Dj1gGOPA0Fq2x+DQp5f+hrf2Y1r6Aq4lG LpWWlBQTWiWnt/DuZweiTguIBR8oI+19Ln5JZlZYUt8aS/+n+DsWWL8IQ1dnY5pxQo7eV2 IhpEpkurM5La1xLd/QgvJtTzAfuDJEQC3hH3Hpgaqs1UGUhiHBcc8badYW+FRNttWU9QjI zQCpS7kyuqITyC0ivY40vzVMP82Q/uSMfH6x7/ys5BvPAJxCN6x8k8zN+bD14JL69gOqdR L+3fv1+p9oSUQUYJKHSlfk0TlDRssYrh/spl1y2Hid5rHlQxFM7F+yYcA6znrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YEzzF03S; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705088818; a=rsa-sha256; cv=none; b=uW9yoMcBnDkAlrPUv1sWPcIW1VXm6L9aslm7yHaRrIdezymZ2Hx/uqRxjD4HLciWmDY01q +6dUfBxJaj5xFSj1vModyM6ibSjVH87efTPCVJP+y9VtyEJOPNBzLRTEb82aP0oX8Rr+F1 CLlBu7C/QuGoKts8HyaidGB3YQpOs9EccbtugWOYIJl8/OrdQJyOc1OHdH2L/sss6OA3Yc RVR+1D5oYNrrJ2FjaYK4toGZXQR2RNLI57XDU74xne5cUtoTt9Yp3PyM03KfZcy6HsjpLy a83MoDqoZgX3uMxImAZJW34qxD00OFb9zM/q2L+fatNfZG4MdeNY3PMqFxMmYA== 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 0F07E11E50 for ; Fri, 12 Jan 2024 20:46:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rONTr-0003Gc-3v; Fri, 12 Jan 2024 14:46: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 1rONTp-0003G9-4C for guix-devel@gnu.org; Fri, 12 Jan 2024 14:46:13 -0500 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rONTn-0000UP-8v; Fri, 12 Jan 2024 14:46:12 -0500 Received: by mail-ej1-x642.google.com with SMTP id a640c23a62f3a-a2ac304e526so636631366b.0; Fri, 12 Jan 2024 11:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705088769; x=1705693569; darn=gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=lhgO5EbBlFdM0rhJgn74hTPoI2UF8n07wrGNs3GVSeY=; b=YEzzF03SfIVyD+brwN3NrBk0QzNCmDiX+uHytWA9YSwmBix5nXMIiaVp5jn58mqbYe ji54PVzSkpW4F1jVfvu1bf/FnOgGs7K3N1VyAisO2ZDuN+KEu2Pa2565YbnzJhpWEBX9 2otVNmF+UCsGSb5g0Mr31OHDzrvU/+rdd2kWEtmOeboBKDcImOygjQdfod8QppuZIMw1 YWCDBASFQGb0h1mPvptm8nyFx04uvpUP6IYRJmnpgjHhznvvJtj+yHK6Y2sPyIh20JbJ +3gAyzMj0Ha48UbEJmw2I94s4i5AxGH5k4c/kYd/I7zwI8Rh/sz/Fem63W2fpL8I85h4 BTew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705088769; x=1705693569; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lhgO5EbBlFdM0rhJgn74hTPoI2UF8n07wrGNs3GVSeY=; b=wMd4A/DzeIBIOSO2GRmC6oo4JOPgl+mxLmqGENXnwsJ6XdmFWCddYjcYBsmTuVSgFS p18x32/DRGoj7u/eKSykcwAuGQmqtNpPNNiH4mqJ7PUGmUris/+CZgc2A1sxC6J/YvlE jm8/02uYI4GEfEuGpkaUKJHn+F/AT1yX7/BJ1KpRLTzO3Huz9pPCz6sGNVpUygqjwtHB XwR5asua8Ms9faIr6iB4Bg2svd14jPIGNu9DXJlei0viCJcqKcnAoH6CKCPomupyqTmR JOCEqM33IKAGYC3AHQ8uvBbHNNobbTVcQn5vA0jtXoILY+uP+0hO491BzFRhLIpgEVCQ hupw== X-Gm-Message-State: AOJu0YyA8cvIDrF+Nq+hzCjkDeI/jECsaxIQHO4dP6MZi3ckBscJqlf3 AuEE3LGXYdcVT6LWKP+bFr8= X-Google-Smtp-Source: AGHT+IELjaSOW5/Q676NLJiEpAJz6vnZJXSfXOKCJ2krly7K5453m5KZWKlR88xKM1vjNc1/DWwzIg== X-Received: by 2002:a17:906:274a:b0:a28:bdbb:dca7 with SMTP id a10-20020a170906274a00b00a28bdbbdca7mr1028977ejd.15.1705088769055; Fri, 12 Jan 2024 11:46:09 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id x15-20020a170906298f00b00a27e4d34455sm2083057eje.183.2024.01.12.11.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 11:46:08 -0800 (PST) Message-ID: <2121d86481580e3a399e1d0d27d9b94602e1ac3b.camel@gmail.com> Subject: Re: $EDITOR and =?UTF-8?Q?=E2=80=9Cguix?= =?UTF-8?Q?_edit=E2=80=9D?= From: Liliana Marie Prikler To: Simon Tournier Cc: Ludovic =?ISO-8859-1?Q?Court=E8s?= , Guix Devel Date: Fri, 12 Jan 2024 20:46:06 +0100 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::642; envelope-from=liliana.prikler@gmail.com; helo=mail-ej1-x642.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0F07E11E50 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.25 X-Spam-Score: -3.25 X-TUID: 0ecNN3pLoDCP Am Freitag, dem 12.01.2024 um 19:49 +0100 schrieb Simon Tournier: > Hi, >=20 > On Fri, 12 Jan 2024 at 18:39, Liliana Marie Prikler > wrote: >=20 > > > Well, I see how to write specific Scheme wrapper around $EDITOR; > > > as I did in [1]. > > >=20 > > > Or, I see how to tweak guix/scripts/edit.scm for running specific > > > launcher depending on $EDITOR. > > >=20 > > > Liliana, could you provide a proof-of-concept about =C2=AB the shell- > > > esque "${LINE}" and "${FILE}" that would get replaced by Scheme > > > code looking for those strings =C2=BB?=C2=A0 Because I do not see wha= t you > > > mean. > >=20 > > (let* ((editor (getenv "GUIX_EDITOR")) > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (editor (string-replace-substring = editor "${FILE}" the- > > file)) > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (editor (string-replace-substring = editor "${LINE}" the- > > line))) > > =C2=A0 editor) > >=20 > > with the-file and the-line being placeholders for the actual > > variable names.=C2=A0 You could obviously do smarter things with gash, > > but let's not go there at the moment. >=20 > I do not understand how it is different from the wrapper I already > did: >=20 > https://gitlab.com/zimoun/advanced-packages-2023/-/blob/main/vscode-wrapp= er?ref_type=3Dheads#L70-99 Look at your wrapper, than back at my suggestion, then back at your wrapper, then back at my suggestion. Somehow, your wrapper isn't my suggestion. Instead, my suggestion is something else entirely, that doesn't even mention the M$ editor. Curious how that works. Cheers PS: I should probably just write the patch myself at this point, but I feel like it'll be misunderstood either way.