From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CPJtGtqFmV8fRwAA0tVLHw (envelope-from ) for ; Wed, 28 Oct 2020 14:53:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QCI3FtqFmV8cHwAAB5/wlQ (envelope-from ) for ; Wed, 28 Oct 2020 14:53:14 +0000 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 D74329401BE for ; Wed, 28 Oct 2020 14:53:13 +0000 (UTC) Received: from localhost ([::1]:59482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXmp6-0001ct-Bw for larch@yhetil.org; Wed, 28 Oct 2020 10:53:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXmow-0001cc-4v for bug-guix@gnu.org; Wed, 28 Oct 2020 10:53:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXmov-0002u7-SN for bug-guix@gnu.org; Wed, 28 Oct 2020 10:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXmov-0001jh-Qd for bug-guix@gnu.org; Wed, 28 Oct 2020 10:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44272: guix edit doesn't work when $EDITOR is set to "kate" Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Oct 2020 14:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44272 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Prikler , ncdehnel@gmail.com Received: via spool by 44272-submit@debbugs.gnu.org id=B44272.16038967486633 (code B ref 44272); Wed, 28 Oct 2020 14:53:01 +0000 Received: (at 44272) by debbugs.gnu.org; 28 Oct 2020 14:52:28 +0000 Received: from localhost ([127.0.0.1]:50054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXmoO-0001iv-Bf for submit@debbugs.gnu.org; Wed, 28 Oct 2020 10:52:28 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:37869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXmoN-0001ii-0d for 44272@debbugs.gnu.org; Wed, 28 Oct 2020 10:52:27 -0400 Received: by mail-wr1-f47.google.com with SMTP id w1so6024170wrm.4 for <44272@debbugs.gnu.org>; Wed, 28 Oct 2020 07:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=BAIUAW/Jq+VJ4fN+6hc7LBWsyVZ58GMxOXdENFgAr9Y=; b=urY3rx+0+crIlcY98ZLYBSEyy979D5uSl/wq1HcYBqga/pEMa+ro19mhIYCF2czX99 VfakE5nm0FwDChuu2a6yr5whzNqFzfXM7mJVesUs/upl+rjH/DYWu2ZYYnKEBEzGIGID LFcfHCY129eifMGocm7fDcmyM0qDPIjVL2d9VI6E2eMylaXQlEAJ8BCXuzY9IcoPgl8w 3lqCXeHLM58AoAozT1nYVqNTZJzlxnOiBdXIY4n7ClO1IAgPZoyjqNy32yAizR0NC/XS ceYimR1DmVzxq30sSbA4fAv/NTmaSnNInavKHxrvCSn7EhJfCOpIDitCGpesunNzezv6 t7KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=BAIUAW/Jq+VJ4fN+6hc7LBWsyVZ58GMxOXdENFgAr9Y=; b=omFfJA5JPbIsHhKTZs6Nc8vFnP8J2ZkcBF+rSfHcydZDR14LPfBDcDgZEOvGX9cF9X k1+nOXp3DHw/CsrDJfH2ZYoTfwYNAxQzMfksf/YwcrtSBByCUuoZZB7b6r1v3KTAKAGR Q9v0cCiP+kO3i+ir0/Lhtg40/1wvrrdyUYq3GzXpatG4L9FmcJwzASbeMjgO8v0F8euS 7vc62IhKTVWxKutuFdzywXVUZIltiPgozxdstyIJZwsbErJH1ZJtp1Gi0W9taZZ9rT71 4bM4B1bIKANX+NR6GrGduC3V3Lpjciw0uh2PXfczTO/9t2cIEGiLd6yWM0WvitSWfJo+ E93g== X-Gm-Message-State: AOAM5332dGYfwpra4By6grX8IJbAGcQ2FbQk+cHph7b0HTfPrkiqyDjC Qy9PnRfwwPw8kQ2QHTuG2DDtHrLPfI0= X-Google-Smtp-Source: ABdhPJzOnEpDf+pa5oATIbufHzmU1du8WApXUCoAd2cu/jKFKyMDoiPlPGZii2SKz+417Z4ipMI35w== X-Received: by 2002:a5d:6944:: with SMTP id r4mr9435167wrw.151.1603896740583; Wed, 28 Oct 2020 07:52:20 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id b7sm7469362wrp.16.2020.10.28.07.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 07:52:19 -0700 (PDT) From: zimoun In-Reply-To: <1a275264117e14a20f28757d8f6511acfd9ea5c9.camel@student.tugraz.at> References: <1a275264117e14a20f28757d8f6511acfd9ea5c9.camel@student.tugraz.at> Date: Wed, 28 Oct 2020 15:52:18 +0100 Message-ID: <868sbq2yjh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44272@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=urY3rx+0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: Vo7QHLGI8Tor Dear Nathan, > Easy solution, set $EDITOR to "gedit" ;) Or Emacs. ;-) > The reason why kate "doesn't work" when opening files as specified by > `guix edit`, is that kate apparently can't handle the "$EDITOR +$N > $FILE" syntax, where $N is the number of lines to skip. It instead > opens two files, one of which will likely always be empty. This should > probably be reported as bug to kate unless that works upstream and > somehow guix messes up this feature. Instead =E2=80=99kate=E2=80=99 use =E2=80=99--line/-l=E2=80=99 and not =E2= =80=99+N=E2=80=99. You could wrap, something along these lines: --8<---------------cut here---------------start------------->8--- #!/bin/sh kate -l $(echo "$*" | tr "+" " ") --8<---------------cut here---------------end--------------->8--- then: export EDITOR=3D/path/to/kate-wrapper.sh guix edit emacs works (with =E2=80=99/path/to/kate-wrapper.sh=E2=80=99 executable). Well, = the wrapper could be better, obviously. :-) As Leo said, it does not seem a bug on the Guix side. Well, what could be done on the Guix side? What do you suggest? All the best, simon