From patchwork Thu Apr 23 00:58:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 21431 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6D0B627BBE1; Thu, 23 Apr 2020 02:00:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 3A9A827BBE1 for ; Thu, 23 Apr 2020 02:00:12 +0100 (BST) Received: from localhost ([::1]:60176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRQDr-0001Pt-M5 for patchwork@mira.cbaines.net; Wed, 22 Apr 2020 21:00:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53808) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRQDk-0001Ng-85 for guix-patches@gnu.org; Wed, 22 Apr 2020 21:00:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRQDj-0005Zb-Fr for guix-patches@gnu.org; Wed, 22 Apr 2020 21:00:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRQDj-0005X1-0d for guix-patches@gnu.org; Wed, 22 Apr 2020 21:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRQDi-0005uH-Un for guix-patches@gnu.org; Wed, 22 Apr 2020 21:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40785] guix: edit: Make nano the default editor. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Apr 2020 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40785 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 40785@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158760355222578 (code B ref -1); Thu, 23 Apr 2020 01:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2020 00:59:12 +0000 Received: from localhost ([127.0.0.1]:53650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRQCu-0005s6-Bq for submit@debbugs.gnu.org; Wed, 22 Apr 2020 20:59:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:47758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRQCt-0005rx-0z for submit@debbugs.gnu.org; Wed, 22 Apr 2020 20:59:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53494) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRQCr-0000pK-IM for guix-patches@gnu.org; Wed, 22 Apr 2020 20:59:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRQCp-00020q-M2 for guix-patches@gnu.org; Wed, 22 Apr 2020 20:59:09 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48220) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1jRQCo-0001ce-UY for guix-patches@gnu.org; Wed, 22 Apr 2020 20:59:07 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CC3E6217FA for ; Thu, 23 Apr 2020 02:59:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kwb9DnIeM1FK for ; Thu, 23 Apr 2020 02:59:01 +0200 (CEST) Date: Wed, 22 Apr 2020 20:58:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1587603541; bh=cJTTr8FOzLVdZZSU/g3R6k7kO/ig/zy50b47rolQtLQ=; h=Date:From:To:Subject; b=cPoKW1oSjIj8Y5kp89B56YfYbM/YvWbFfSNH/F9WHx1p/fPAQcjFC74trNiUDdcZ0 pqRTFNTDi0+T0CCVms4eY6N+ybs66OkGcuDcKYpCpIxMK0S36vx8AsIS1ehFlMmLU6 QkrDAqUOaLgl85LNzzeeC3SHpancTHBV4nnNcuQGF24fdSiPCi9Py8QZtK6dqy/O+P pIDe7HYTn9KdeWFu4V2iLyFW0sgr5/M12oGUei06v2gZ3qFAMHrqJgD+VEFeQEuF3S BDqkrYu7XFGCfQ8ljvQkCtcWa5DiqG3PD8mKxtuHVzTwxuSJBx7FvXVkmAdZwXEYVp EVf9so2YKAwOg== From: Raghav Gururajan Message-ID: <20200422205850.518dbe3e.raghavgururajan@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=raghavgururajan@disroot.org; helo=knopi.disroot.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/22 20:59:04 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From c0770e600823315dddb6a6c273e461c98195622f Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 22 Apr 2020 20:55:40 -0400 Subject: [PATCH] guix: edit: Make nano the default editor. * guix/scripts/edit.scm: Make nano the default editor. Nano is sensible default, as it is installed by base system. For development, user can set custom value for $EDITOR. --- guix/scripts/edit.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/guix/scripts/edit.scm b/guix/scripts/edit.scm index a6fd1d2751..43f3011869 100644 --- a/guix/scripts/edit.scm +++ b/guix/scripts/edit.scm @@ -56,10 +56,9 @@ Start $VISUAL or $EDITOR to edit the definitions of PACKAGE...\n")) (show-bug-report-information)) (define %editor - ;; XXX: It would be better to default to something more likely to be - ;; pre-installed on an average GNU system. Since Nano is not suited for - ;; editing Scheme, Emacs is used instead. - (make-parameter (or (getenv "VISUAL") (getenv "EDITOR") "emacs"))) + ;; Nano is sensible default, as it is installed by base system. + ;; For development, user can set custom value for $EDITOR. + (make-parameter (or (getenv "VISUAL") (getenv "EDITOR") "nano"))) (define (search-path* path file) "Like 'search-path' but exit if FILE is not found." -- 2.26.1