From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qNYRLsE5dGW6IAEA9RJhRA:P1 (envelope-from ) for ; Sat, 09 Dec 2023 10:56:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qNYRLsE5dGW6IAEA9RJhRA (envelope-from ) for ; Sat, 09 Dec 2023 10:56:17 +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 745EF5A167 for ; Sat, 9 Dec 2023 10:56:17 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ef3Nt6gK; 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=1702115777; 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=4M9oGXFq9XMi+vL4aQerLUZDTZ3/D7k1LgPXuxZV+tA=; b=VM9G3ZkzbUqIKPtA500Cr0+QvXsOTS1LRT0TT+GbUY3Y2lpqVLPGba/mSfp5IQdkiLbYx/ cpwfe/Czh7kxG6Xqs1NIGSxlZm2o5GOP6Ielq1aGUAW8etO9HLAM3OoIql4deQJvx2RguI 3113+ZJIRD6qSLOiO/WNvCKE5wBTwcWlG5S46KVw30btWvCPta+SOA5E32HfoEy81V6lVC FFVFk0M6Q1LeRauIztCHoarked25CeyyNCSSVShhibzkfNqm7ib61T5MDJfvhKIKVONNmk Nagd2yWsDqzZzTf4hx9erSI9Cw+tfLi5hJPhlnh6TzYMYFxSBGjAAN+H85oE2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ef3Nt6gK; 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=1702115777; a=rsa-sha256; cv=none; b=CH/AfOTieWb2eYqqqYzXXK5nfmcY++J1l47cIisO/N3gDcwaFyyUjycYpVYEiFgWmTt/mu NrhTy98FmfzJlaQfRRxs4LRCK5qjp/tXLQIui4iEDbKXSXFDIde1frWj5tpwNXCMw9rYrw yqKQzAOmMBTLVA1hTeufxfYrtWSo+i0bcyh2oUpF3KyJ92vCipKnFfXyd6quFUr9RdW9IK aPLJXg849bObxy5srJrcKyIoHNWJmkzjwOvaeg4oRWamtazmo2+4qN6KNgStN/M2/WtDLN 7lMLio+dxSNPaU1w8Lc9bq+KSjfGecgEOlBxUSgDJP6Vjjhk9wa54TgaTIFW0g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBu3Z-00086q-GA; Sat, 09 Dec 2023 04:55:33 -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 1rBu3V-00086b-Sk for guix-devel@gnu.org; Sat, 09 Dec 2023 04:55:29 -0500 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBu3U-0001DY-BN; Sat, 09 Dec 2023 04:55:29 -0500 Received: by mail-ed1-x543.google.com with SMTP id 4fb4d7f45d1cf-54dca2a3f16so5078883a12.0; Sat, 09 Dec 2023 01:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702115725; x=1702720525; 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=4M9oGXFq9XMi+vL4aQerLUZDTZ3/D7k1LgPXuxZV+tA=; b=Ef3Nt6gKU9ddCZ1Ijm3agUcVX5uyKLSAIalp/ttNG7JGwMHwyEBZD5YvlRRGmU3gQQ cZKjaWwne7TR/mlcn7AqaSSuuwl9URmpe0Uulfqy6gk+oGy5GudpyNDeCYms1KOh/llb G4fjOKybKIK/HZlETXZ6rLtgnLiJlA/IBdjKJ1N7YQPnHwkWCCVTQdl7LVbicBI+VO3K /SInwhyAebAIRaI3JO28KlDTUpHS5wfSz6DfEF04aVpMDcwHNTgdIZHPwCxhVUdUOsWY 7T8k3Wiziajr0HyhwKlO6AqmQWvqV+s4vRQlMJ7CvDezm1bvOMsTX1fuyq+F0mT1ooji VL5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702115725; x=1702720525; 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=4M9oGXFq9XMi+vL4aQerLUZDTZ3/D7k1LgPXuxZV+tA=; b=KEkqrU4NKO9SY7e3FjpV/JD4lWECvxl7vM/utqWXLiIfsuPWxBpzPhMgfAAWmknDk8 hPvkWd3gPy2/xYJqULMziKzmObwhXVcFPNGo+CbESPN9paPtTVvvJ3fSt1R13MKRKl30 RC+hX6msoU3nbnVXSyTiDSS7mnrm4ZnRoG7lA7nszTM7Vk2ZhN4Wi6FHPpkB4qXf18UL g7VDr2schKNZIsPjwWKLQKc+oqynWw9kAp5R3xsMtsSPrB65fz5ArlJGunY/TMp50b0Q tO5R+jqUbe+oyVkTou+1xkh26m7I/binOXVKAKndDfGRZhN1BIpkizq7KJF3B/Wc5Syr mqEw== X-Gm-Message-State: AOJu0Yz5LqoqqPqtJLyc8lg1u+kjUmaYN8k3ALTi825Ph3XmiwwN+LWW Duft6pdB/aON9fW653zuI+0xyt+Eqyg8GA== X-Google-Smtp-Source: AGHT+IHhzDav5YNbAJwv/Pr1ZDytucvI27FZIccJTOxEE3VV3gh3HAhFPfxPIHzHXPb/2DkzxKfRwQ== X-Received: by 2002:a17:907:aa6:b0:a1e:5a8a:674a with SMTP id bz6-20020a1709070aa600b00a1e5a8a674amr2608875ejc.19.1702115725279; Sat, 09 Dec 2023 01:55:25 -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 q18-20020a17090676d200b00a1d9733f2d9sm1992794ejn.209.2023.12.09.01.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 01:55:24 -0800 (PST) Message-ID: <16a4ed17028270e0fbb2b15f1ce60d6b2b4a556a.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: Ludovic =?ISO-8859-1?Q?Court=E8s?= Cc: Simon Tournier , Guix Devel Date: Sat, 09 Dec 2023 10:55:23 +0100 In-Reply-To: <87ttor919i.fsf@gnu.org> References: <86wmv0o5gi.fsf@gmail.com> <416a6472edf6d2123c47ea5b555bedd005f6ac6f.camel@gmail.com> <87r0kpu3d9.fsf@gnu.org> <246521d6a06ee6954372278b8507c346fcc068cb.camel@gmail.com> <87r0khir8y.fsf@gnu.org> <772cbd0d5228b5754e71a8ad999aa755b4949526.camel@gmail.com> <87ttor919i.fsf@gnu.org> 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::543; envelope-from=liliana.prikler@gmail.com; helo=mail-ed1-x543.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-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -1.61 X-Spam-Score: -1.61 X-Migadu-Queue-Id: 745EF5A167 X-TUID: NtoYBcIYpt7+ Am Samstag, dem 09.12.2023 um 10:24 +0100 schrieb Ludovic Court=C3=A8s: > Hi Liliana, >=20 > Liliana Marie Prikler skribis: >=20 > > > > Maybe we can check for a guix_editor shell function and invoke > > > > that > > > > rather than EDITOR if defined? > > >=20 > > > =E2=80=98guix edit=E2=80=99 cannot =E2=80=9Cinvoke=E2=80=9D a shell f= unction though. > > >=20 > > > I was thinking of something more gross, like checking whether the > > > basename of $EDITOR is =E2=80=98kate=E2=80=99 or =E2=80=98vscode=E2= =80=99 and in that case do > > > whatever is relevant for those editors. > > >=20 > > > WDYT? > > I see your gross "checking whether the basename of $EDITOR is > > =E2=80=98kate=E2=80=99=E2=80=A6" and I raise my "use $GUIX_EDITOR which= uses substring > > replacements for ${LINE} and ${FILE} implemented in pure Guile > > code" >=20 > I=E2=80=99m not sure I understand your proposal.=C2=A0 Are you suggesting= that > =E2=80=98GUIX_EDITOR=E2=80=99 would contain arbitrary Scheme code that = =E2=80=98guix edit=E2=80=99 > would evaluate? No, it'd contain the shell-esque "${LINE}" and "${FILE}" that would get replaced by Scheme code looking for those strings. Cheers