From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UBt7BZtvQ2UaxwAAG6o9tA:P1 (envelope-from ) for ; Thu, 02 Nov 2023 10:44:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UBt7BZtvQ2UaxwAAG6o9tA (envelope-from ) for ; Thu, 02 Nov 2023 10:44:59 +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 BCA2E10686 for ; Thu, 2 Nov 2023 10:44:58 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NTaN+0z3; 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=1698918299; a=rsa-sha256; cv=none; b=OTohro7VVyqpl2NW/5ENPXTAqsFHf4k+kG3v7l4mx0K4bb5+VsopWbWR2cVqMD+ugSnPmt Br1DgmZhzarik6wpSbeQs+GBpZVCPM+G+wpXgYzrmvcyqpNOXqdMckfmM18IykqsXS6Mdf jPIIhet0GigigYUl6GKqyLIHhIxIc6DHoGguTWyLglXjXE3dYzpqHsXMPnPLItOVXG6kik ZJ8YnnXXJRjB9CD/a0yXYtASuOJpOEjugiXwz67UfgRLNgDVdi3SFPdlKxfhdcNRIdywqb Qb7nEvs/OOclQlXGaUrQ/BNekxl8g5dhdOa31X3ct/RKBdTGjW+OiLRnGnT3aA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NTaN+0z3; 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=1698918299; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FQqrmxJoN+/BTyMiFqGFQXWTElciT/svd6rz01ezn1A=; b=IZbKrEUdczNItIR/0nt/cx4I5D/hnz/aZhj+vb6y8G/fJNXjcBbgGra6boAgOhuns7EruI z8pS2ufEXTOHxU6Lk3kY+kRoU+it4/qVThoKG1Q6vIHhVIfMlU959d1+OBJFYa79TdRZWy Dc7mEAUEJFcO0ql+V84Jd88QU9QMjQffq92EhCJiqWNgtZfmYdfywF1t9HB4njHJuMcY4j 69tXcCjYx2XZlhBsNfLuUeHkNz6wnjssZJcGITt5F0y+VVPUmg0CzhQMJD51VROH3yu0B0 +ElE/ZTSCEP7OmcPljKlgs1ouqsVg/K7GwXSJ4OeVRb/FkhvL09+2h5zzUYfgw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyUFE-0002aL-En; Thu, 02 Nov 2023 05:44:08 -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 1qyUFB-0002Za-TJ for guix-devel@gnu.org; Thu, 02 Nov 2023 05:44:06 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qyUFA-0002RI-9j for guix-devel@gnu.org; Thu, 02 Nov 2023 05:44:05 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-408434ce195so1199875e9.0 for ; Thu, 02 Nov 2023 02:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698918242; x=1699523042; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=FQqrmxJoN+/BTyMiFqGFQXWTElciT/svd6rz01ezn1A=; b=NTaN+0z30q6rwmgDrURiOsuuMIx88HpzxkGoKftJ7Wkpg8EAIn5hPldxIYvQox2Vo4 KZX6PNe/m4jxw/OHQKryG+cO/9cr1+t18Cwymzo6sZX19HuJGTM5c90dTwP0f5MPvLl6 7vnmrsfma2HG/s8kACT5vgEDMQdSUuDitvJFgAM4O5/20r4SWIFhRlORpmEGN1IAH2s7 qv5eEepAmMXylmj8WG3qAN8o8z1en4U88pUx9SxGDWrUFGHtiHBWg7U5G+2ngyZ86KpE 9Iu1MYOpW4X1HUST8vNZjMWByQALHkeLmxOZ/sLYcP1c8k2GYiNatZqFK9dzZQLzzdmM YGcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698918242; x=1699523042; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FQqrmxJoN+/BTyMiFqGFQXWTElciT/svd6rz01ezn1A=; b=nZlIjhnhtdkb+ivs+QlFRWb59z4oaZGZ5NHlaPIjhYEAQnr1vuLxK0vs7TsyzXls/z 8QuKvPKzKuMvkokH2avBYYIl9RnOLkzzAyW31VznHnzDbLrD6t95GxzEzdKfrW9famgn wl5zb7Sog8nI2oOTu28qnFpUdmRJcSqYWKprJqa3uECvxaCza9VTpdrBuUQMJC5hnJXH JEzFEA+RcvVG0IF9eXW5JKILhmCmot6KQJM0oydZ+ybKXcrq5GBshZba2f6gd46eJFe9 40do2+nWtJolwheZ4VAqbJCBOeUqSU5VyacYaLdFH142jet+8TRmcZNZT+KMYieuLwUy RsVg== X-Gm-Message-State: AOJu0YyTWvSNhOqDy+Ly+pvLlVYdl4zuF5XgxIlBnG2dv21RoEOIIbOg sVWS0CktBOJzE0Wc+mp58MX74/hBtkY= X-Google-Smtp-Source: AGHT+IG3nEgakzlqonE5tC6sCYDZ37N4y7wPckVCVyZ2WyTH6gynMDnt7kbLKuBLwUNDQMEozz7aug== X-Received: by 2002:a05:600c:5128:b0:401:c07f:72bd with SMTP id o40-20020a05600c512800b00401c07f72bdmr14664734wms.4.1698918242549; Thu, 02 Nov 2023 02:44:02 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id q10-20020a05600c46ca00b00405391f485fsm2223111wmo.41.2023.11.02.02.44.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 02:44:02 -0700 (PDT) From: Simon Tournier To: Guix Devel Subject: $EDITOR and =?utf-8?B?4oCcZ3VpeCBlZGl04oCd?= Date: Thu, 02 Nov 2023 10:43:57 +0100 Message-ID: <86wmv0o5gi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32b.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-Queue-Id: BCA2E10686 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.83 X-Spam-Score: -6.83 X-TUID: 54TXb3qiNeA5 Hi, 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. Therefore $EDITOR needs the command line: $ $EDITOR +N /path/to/file Well, that is accepted by many $EDITOR, to my knowledge. At least, Emacs, Vi or less are fine with it. However, some other $EDITOR does not. I have in mind =E2=80=9Ckate=E2=80= =9D or =E2=80=9CVSCode=E2=80=9C, $ kate -l N path/to/file $ code --goto path/to/file:N This had been raised in #44272 [1]. The current fix is to wrap $EDITOR and then make the current correct call. The question is: do we tweak =E2=80=9Cguix edit=E2=80=9D for behaving differently dependin= g on $EDITOR? or do we provide some wrappers for the issues that already popped up? WDYT? Cheers, simon 1: https://issues.guix.gnu.org/44272