From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KHs+D48ydGUnWQAA9RJhRA:P1 (envelope-from ) for ; Sat, 09 Dec 2023 10:25:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KHs+D48ydGUnWQAA9RJhRA (envelope-from ) for ; Sat, 09 Dec 2023 10:25:35 +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 2DCF051965 for ; Sat, 9 Dec 2023 10:25:34 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=pK7a65gb; 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=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702113934; 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=bGjPH70bcZIk/e+vPLkXQT6m+PmObjMEe5PkCpUPcFw=; b=O7oNqFwdCpadzI4F1QQfkyxx648MVeqkFE43upEpfIYBYorQ9kR50VynN5YE1GYXdAM/NI ehlLLjhpXaGdvj8oCaGwR8eitqZsVEl4sC+az/Ao7attq89vfYB8/Ur8cIQsYFRFiuPYcA 8x3Jwzrxo05bvucgF3dbGQIrXdKqLD5zonh0da3GE8CrQGZ8hs44a/z9tkNj2/doQ9xEDE yutSpePO17ILlavG5qra0M9MzceVxNL+0eTxu2xNSmDOShPrNNgQDB01Zi0Ei3FYzIx8EV 0VgW7UPPoOV1bCW3u9AdMH8Ct8tYLYtiDTahgeorC+deSrlFPHIzAWxZ9VoZYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702113934; a=rsa-sha256; cv=none; b=f0IWw7SPyjbNEIZm/miz52ypReFiWKh7RRbI/ot2SAWWBPQuJ1E+pGs2fPxcCtjwA+tGKJ QAs0wS42+HR7cmyDjd3HeNfFVTiuPzGTlJg+1Y1fYlh8yol5CbTNtMtRSdho+sdrYTTp5b 89bb5jQigvntpU2wdgWfz/fANXAg9jgBcE95r0zV/S8gsOXWirCUxMjFDqhX7G4V6zBAag NgbX5slVLg8/nPsnij1jyhSB8HmhHOZFvRNXyIZeK1fTgQd3GJJX3Xt+DqeArFg8QCjgNi 8+rWbZx7IVYzW9WWkDTYTxze6fS1sklyfTSLPsZPCJsNgHbbhudfLIFJxMpeQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=pK7a65gb; 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=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBtZm-0004iO-RL; Sat, 09 Dec 2023 04:24:46 -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 1rBtZl-0004iB-4I for guix-devel@gnu.org; Sat, 09 Dec 2023 04:24:45 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBtZk-0006Dl-RU; Sat, 09 Dec 2023 04:24:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=bGjPH70bcZIk/e+vPLkXQT6m+PmObjMEe5PkCpUPcFw=; b=pK7a65gb7AeV6TPRT6gQ hx86h4JSRE4x6r4nyBexg4M8iz7CqXeuE4rfkILokFZFj7PfGjNAak9fvVfg7hs698KKRS7hb3SmF sJiTNl75JpqMuvMvuPg/m7orCZ5bn8NIFyJEe0QCpdYVbnpXO1FgTUewvoAotKUML7c58edw2wAUd qSf2MaXkglUkZ4RQLC7SkAG1MsjwVbBQpdCJqHM/r3vaKL3JuVjmjvX4tQLKl8SIGT+RYbReh8ahW RcsYUTM8xsLKmGqAUoIXtRRu/1SpWVGmm9DakoVsjUkgJBtJaqlfKDxf7FLCAIbZ+3rBsx9Og/f81 C/8ircHsm1E7Gw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Liliana Marie Prikler Cc: Simon Tournier , Guix Devel Subject: Re: $EDITOR and =?utf-8?B?4oCcZ3VpeCBlZGl04oCd?= In-Reply-To: <772cbd0d5228b5754e71a8ad999aa755b4949526.camel@gmail.com> (Liliana Marie Prikler's message of "Wed, 22 Nov 2023 20:24:59 +0100") 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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Nonidi 19 Frimaire an 232 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour de la Sabine X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 09 Dec 2023 10:24:41 +0100 Message-ID: <87ttor919i.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -1.31 X-Spam-Score: -1.31 X-Migadu-Queue-Id: 2DCF051965 X-Migadu-Scanner: mx11.migadu.com X-TUID: 5v31YkfgHeUw Hi Liliana, Liliana Marie Prikler skribis: >> > 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 func= tion 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=98ka= te=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" I=E2=80=99m not sure I understand your proposal. 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? Ludo=E2=80=99.