From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 iNLFByV5Q2X4NQEAG6o9tA:P1 (envelope-from ) for ; Thu, 02 Nov 2023 11:25:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iNLFByV5Q2X4NQEAG6o9tA (envelope-from ) for ; Thu, 02 Nov 2023 11:25:41 +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 CF503101C8 for ; Thu, 2 Nov 2023 11:25:40 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Q6Ysm7sI; 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=1698920740; a=rsa-sha256; cv=none; b=oT+22+IPqOeSvymroQoFYLtpZFH69LIPGTm74zFGBsAri8ZgQdZIIMuKS2F6qmzPYQH4j8 YbfecyTmDDQl2UN7rAHF93whtG/lN4VLtMOj0vH+1+BI4WNdMQ5lA10bS5Xz851a8OEYbe M7ozin1GRhQ8K4VN0aOPOUo+jwUHzlNu13O93fGQ48QRbtGXahEI0FmtGxNhiiI24IiJRT LAST4fQLXvv5IkTfYTGyA29QzLLEWuCXi36uK1VADa8hMi/xqHPomCBCNQWIngTyQNCDDl MnkzfGFtzz1Fd+WFeN5HHLr7E6IjaRqu7/9+iMyYsTDHrdsjYxURQ1XbWeRRuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698920740; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=W1M2sPK5qfuxgnXAHKZsuv3gEfQRJRIl74pF0MtLsoI=; b=ilOKSFLWG04Kh4v+cpGg+UeTL9plncaPmrK/PQ6tKLogsZ6+R6DZx5UL3sA003L6Kn2/uh 7vFsRx5HB3xZYWYfLTN2HZa1aBH3Qt9InvQHZpjmhb0OkZ9TirwmeFid5RrAdzBr9eQb7B pubI/lKHQgM3DV+IH43tq9QKduUnO3IMxuNME6boSaA7toF21NxDKKyRDbBm8z7JxvrTig 2dpxD/QHy1OfssKP4keG3k0IDo5omOG3ojAYGMpIt9yZdfjSXpTSgg1LliCynnkBsg9kWU ZOgSO3ULUR88xw+quWv4p/mJADWzxI2U19KRdxrMbz9jw1liRkx2OBgPK2UXaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Q6Ysm7sI; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyUsr-00059l-KS; Thu, 02 Nov 2023 06:25:05 -0400 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 1qyUso-000597-Ld for guix-devel@gnu.org; Thu, 02 Nov 2023 06:25:02 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qyUsm-00028K-TV for guix-devel@gnu.org; Thu, 02 Nov 2023 06:25:02 -0400 Received: by mail-wm1-x343.google.com with SMTP id 5b1f17b1804b1-40907b82ab9so10618025e9.1 for ; Thu, 02 Nov 2023 03:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698920699; x=1699525499; darn=gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=W1M2sPK5qfuxgnXAHKZsuv3gEfQRJRIl74pF0MtLsoI=; b=Q6Ysm7sI9nSO5BVwja0lTMcgikoFwB7ytb4vBhdujmdac4R/yoEE3a7GhlpowI2bfY 7vklSlgx9Wv3EEDx0fpVK5uvbAxLmaaaBnNozLamUdmGCyKEP//nixIUTvMUNnqoUZK5 2zet4OqoU8VUh6re6GgfpuHSUVI99636cG0ZGX/7Fvv8BNHnMO2f6rGLVQSJu3Ku8Pxm XzbSLemeN10MvMHQz3XiVjenxmYKCHCeOoCLxRrJ6WaCNC3AaZ51cvupdizhyeiIvBlz YGHY5b102XVM7kdWvuA/KnUQSwxONvIetAFzFfEQzghgwffvqNftUcILwDjIajW6revb IJKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698920699; x=1699525499; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=W1M2sPK5qfuxgnXAHKZsuv3gEfQRJRIl74pF0MtLsoI=; b=o+qTDDuGOw6ZzRMf4JaCwIujbiioWoz0nYc4zzaUfv9U2HBRxVtA0vZh1AkgmbEvxP gEXwnsSYB5X4m5+vD3J0nszipb3x6YpI1IM/V9wLO4NMqjzDhjiZJLGYfZ+MhkDXIfXu ixcHAJmxlf7M8S/apTM7ThH+kLgSwIq1aClI1JiXREZS1IlonLv/LN6aQtfhAnwM1zYa ZhU4/CfVb9XJCOPRWwMf6OiCDmgzTDmXGVKPPPjT/eW7b9lMQFQoO+Ugksw+tapzifzx +EI7dDAoxvM/AZwx6u6ydxk6kikvScYRAgxxHoITxEtc9QspMgtQQ+KXKWPvJX4oo6Jc pWKg== X-Gm-Message-State: AOJu0YxP3YmAHC+msvNo2rvaPoS7vnjb2Fol1rVgtiZPsA4zl5fUdwE/ HBj5F1R0oRErsXINRmjccso8EkzmIxo/ug== X-Google-Smtp-Source: AGHT+IGcfjZy9ErO9/t6IGmp+GM3SOqbYZ1uoy2EWv85ES2n2Mi0J0eDMd7MXaxNOxuldY2xpJPOkw== X-Received: by 2002:a05:600c:1554:b0:3fe:1fd9:bedf with SMTP id f20-20020a05600c155400b003fe1fd9bedfmr9078171wmg.11.1698920698873; Thu, 02 Nov 2023 03:24:58 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id 4-20020a05600c22c400b00407b93d8085sm2383342wmg.27.2023.11.02.03.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 03:24:57 -0700 (PDT) Message-ID: <416a6472edf6d2123c47ea5b555bedd005f6ac6f.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 , Guix Devel Date: Thu, 02 Nov 2023 11:24:56 +0100 In-Reply-To: <86wmv0o5gi.fsf@gmail.com> References: <86wmv0o5gi.fsf@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::343; envelope-from=liliana.prikler@gmail.com; helo=mail-wm1-x343.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-Scanner: mx11.migadu.com X-Spam-Score: -7.24 X-Migadu-Queue-Id: CF503101C8 X-Migadu-Spam-Score: -7.24 X-TUID: Btqs351lVnvZ 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/file= =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. Since less used +N, many other tools inherited it from it; POSIX requires -p for more since 2008 instead (ironically, it laments the incompatibility with vi and ex, which use -c). > However, some other $EDITOR does not.=C2=A0 I have in mind =E2=80=9Ckate= =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 > This had been raised in #44272 [1].=C2=A0 The current fix is to wrap > $EDITOR and then make the current correct call. >=20 > The question is: >=20 > =C2=A0 do we tweak =E2=80=9Cguix edit=E2=80=9D for behaving differently d= epending on > $EDITOR? >=20 > or >=20 > =C2=A0 do we provide some wrappers for the issues that already popped up? I think we should at least document our behaviour, so that there's "less surprise" (at the very least, we can point surprised folk towards the manual/cookbook then). Going forward, we might want to call upon some standards committee to finally have +LINE:COL or similar standardized behaviour for $EDITOR and $VISUAL and then use that. Cheers