From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QIrXMM49VmX8SgAAauVa8A:P1 (envelope-from ) for ; Thu, 16 Nov 2023 17:05:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QIrXMM49VmX8SgAAauVa8A (envelope-from ) for ; Thu, 16 Nov 2023 17:05:34 +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 5A5565AAD0 for ; Thu, 16 Nov 2023 17:05:34 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VKPcbSaw; 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=1700150734; 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=lFxgy4YKh5Vt/PK39hIBPnwAQcXea/rXnzIMm8seC7M=; b=bOYF+9DU6ArNJe0O3Z/RBxNqfuKnKBBbFhdjhpO9n9eCYCyhnGjvBazU35AzbK0GrKaH21 AXg72Nu+7nt/vuXGuASglaydxGJ3UGrdkpmnX7+CUg+Q/xxU3xlkPbtxpnPIqt8VKRieTq vv0G755kEmgJTq0Bt+J84ekeP6gsWro3dRm7mfU8NrW96/PDgYWiFkVoP47dFPpWv/w65T s3Ylk4FR4CrwORTNQWAHGhSUJMT9kzjo4F95nENLWPk98GXVCyKboZ+iZkdJkp2lDJyNBm Eyyppu1lMd0r3221D0wqBYQDooxnls8ypd40I6/nBhT+mVM4cNGuRhkCyStXVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VKPcbSaw; 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=1700150734; a=rsa-sha256; cv=none; b=dVxp4YMbZ2jXwHk4l7oKG9ekHPOREfyfHlp22k+jeRxpjw55n3HDfbEDydlNzLOeeFDtOl rMgtrJgH3vFgXP4gCR5bQAxZpCoj8IXoVxITo0uRCFskDFpulEfMUqAAUJyLfWdm4zb5CY S8vtLS6pDaN6VTusMOrriZfVtw5G85+pSddHAkEULFuBTVoDBN/uLvPA4VrpwbHrJYigKy V9Yvxfl4YgsTlBimEFmFKOzUzMQbRK2/bcKiLnb453wrop8gzecIUHs9zUy7KgINY6SeIh 2G6JuqlE8sudz+vFku0LrNgsdUzB8hfI04+FyLuuqHNUo8/piN9U2zndge2kmg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3erQ-000746-6y; Thu, 16 Nov 2023 11:04:57 -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 1r3erK-00072O-QA for guix-devel@gnu.org; Thu, 16 Nov 2023 11:04:51 -0500 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3erH-00075C-30; Thu, 16 Nov 2023 11:04:50 -0500 Received: by mail-lj1-x241.google.com with SMTP id 38308e7fff4ca-2c4fdf94666so12648931fa.2; Thu, 16 Nov 2023 08:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700150683; x=1700755483; 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=lFxgy4YKh5Vt/PK39hIBPnwAQcXea/rXnzIMm8seC7M=; b=VKPcbSaw+aC1+qk0DkJ73lB+6tJhjQFihzAddBs5lAnR8aPhGAcg8CxH83tG7bWZ29 cJMeHZ7LVRuNHEQhZiyV/G7cnuU3FCRL1HdNeJCvyxzUGEihLwbTupmhX9aaUjWhqXLt 3hMCxVEY3/A4IFBAzoWKHDtY7f4SHGDj7O3IkQ0eiYN63WE6ypoDLvD1vhPKdWNumthT 0v+K4tDw263rbSQ3GjOTI6YcW3kofXtDvFZtOSxMZw158mWBSa88seDQj/rcScd3BQbE gX1gtrKhyac/azZLg/ysJchmRoSgiEXKkkr9HM3YZN3KUABT0sYWPslGlHgLYgYvr4K7 hOzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700150683; x=1700755483; 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=lFxgy4YKh5Vt/PK39hIBPnwAQcXea/rXnzIMm8seC7M=; b=HP/m6s/fzqd25zyz7P2n22nysZBSwvOl8SW1xvC5ZJaS0E/sgYEa3ZsAwkuYg7Y+/g 46OCHXaRgSwxVRrR59/X0CZjKsp8Yeq6w58f2kQ/VFXH6MGyEnncy42+Osg/1auptiCI fCFBGIs7PVRiWoM3MqSywrgw9ezxEZ7WbUp1xkWgLdukZ5YvsSShc2tyXGNyNPE+3fs7 I8v5Y/LyEOWtRE43nmB/pRCNNtEP1QhDaqRnH6bzYWwzZ6yVHttH5lZB7qpH6wA+0E2n cFgWB0jV83e0u/xTeIsPlvCWU5M3XfQadjZN0gqz7hch4pPxZVAgdrDLAkh+YCO777Cm EfUA== X-Gm-Message-State: AOJu0YxwR9hrh92AguxCz372l3wt01ECECC/3nW1KPgJrq+N3Pd/jEjK BYbr4mmDxyHiSTiglmnvwlmB688OJ6RrNQ== X-Google-Smtp-Source: AGHT+IHKa8qR37SaOGwC3pR8WoqN/p3FNWvXaFl91kya+iNCFYzIrp8U3ahwMlhLWF623MaSMWcfpw== X-Received: by 2002:a2e:1659:0:b0:2c5:169f:ff03 with SMTP id 25-20020a2e1659000000b002c5169fff03mr6398764ljw.5.1700150683397; Thu, 16 Nov 2023 08:04:43 -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 u5-20020a05600c138500b003fee6e170f9sm4164240wmf.45.2023.11.16.08.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 08:04:42 -0800 (PST) Message-ID: <246521d6a06ee6954372278b8507c346fcc068cb.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: Thu, 16 Nov 2023 17:04:40 +0100 In-Reply-To: <87r0kpu3d9.fsf@gnu.org> References: <86wmv0o5gi.fsf@gmail.com> <416a6472edf6d2123c47ea5b555bedd005f6ac6f.camel@gmail.com> <87r0kpu3d9.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::241; envelope-from=liliana.prikler@gmail.com; helo=mail-lj1-x241.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.88 X-Spam-Score: -7.88 X-Migadu-Queue-Id: 5A5565AAD0 X-Migadu-Scanner: mx10.migadu.com X-TUID: zCV7KmaCJlfG Am Donnerstag, dem 16.11.2023 um 16:25 +0100 schrieb Ludovic Court=C3=A8s: > Liliana Marie Prikler skribis: >=20 > > Am Donnerstag, dem 02.11.2023 um 10:43 +0100 schrieb Simon > > Tournier: > > > Hi, > > >=20 > > > The command =E2=80=9Cguix edit=E2=80=9D returns =E2=80=9C+N path/to/f= ile=E2=80=9D that is then > > > passed to $EDITOR.=C2=A0 Therefore $EDITOR needs the command line: > > >=20 > > > =C2=A0=C2=A0=C2=A0 $ $EDITOR +N /path/to/file > > >=20 > > > Well, that is accepted by many $EDITOR, to my knowledge.=C2=A0 At > > > least, Emacs, Vi or less are fine with it. > > This appears to be a somewhat archaic convention. >=20 > =E2=80=9CArchaic=E2=80=9D is one way to describe it; I=E2=80=99d have sai= d =E2=80=9Cstandard=E2=80=9D.=C2=A0 :-) > (Implemented by Vi(m), Emacs, Nano, less, more, etc.) I said =E2=80=9Carchaic=E2=80=9D, because POSIX specifically says =E2=80=9C= all options should be preceded by the '-' character=E2=80=9D, with special exceptions for more= , etc. for backwards compatibility. It's a bit of a pain, because the argument that used to be standard among all those tools has (in POSIX at least) been replaced by several dashed ones. > > > However, some other $EDITOR does not.=C2=A0 I have in mind =E2=80=9Ck= ate=E2=80=9D or > > > =E2=80=9CVSCode=E2=80=9C, > > >=20 > > > =C2=A0=C2=A0=C2=A0 $ kate -l N path/to/file > > > =C2=A0=C2=A0=C2=A0 $ code --goto path/to/file:N >=20 > It=E2=80=99d be nice to support these as well.=C2=A0 However, how do we k= now we=E2=80=99re > dealing with kate or VSCode?=C2=A0 By checking the basename of $EDITOR? > Kinda ugly and brittle, but probably better than nothing. Maybe we can check for a guix_editor shell function and invoke that rather than EDITOR if defined? Cheers=20