From patchwork Thu Jul 21 22:35:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: myglc2 X-Patchwork-Id: 13915 Received: (qmail 39778 invoked by uid 89); 21 Jul 2016 22:37:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=D*tie, Hx-languages-length:1562, mx, launches X-Spam-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 21 Jul 2016 22:37:48 +0000 Received: from localhost ([::1]:44042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQMbC-0007Xf-O1 for patchwork@sourceware.org; Thu, 21 Jul 2016 18:37:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQMb8-0007XP-GD for guix-devel@gnu.org; Thu, 21 Jul 2016 18:37:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQMb2-0006nQ-Fj for guix-devel@gnu.org; Thu, 21 Jul 2016 18:37:41 -0400 Received: from plane.gmane.org ([80.91.229.3]:33251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQMb2-0006nH-8t for guix-devel@gnu.org; Thu, 21 Jul 2016 18:37:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bQMb0-0002Ak-3r for guix-devel@gnu.org; Fri, 22 Jul 2016 00:37:34 +0200 Received: from c-73-167-118-254.hsd1.ma.comcast.net ([73.167.118.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2016 00:37:34 +0200 Received: from myglc2 by c-73-167-118-254.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Jul 2016 00:37:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: guix-devel@gnu.org From: myglc2 Subject: [PATCH] doc: Explain when guix edit is read-only. Date: Thu, 21 Jul 2016 18:35:34 -0400 Lines: 39 Message-ID: Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-73-167-118-254.hsd1.ma.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:IPRdOP1PBhNVqHLfGVwSd7SQz6Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 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+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * doc/guix.texi (Invoking guix edit): Explain when you can and can't edit the recipe --- doc/guix.texi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index e7b233d..914d24d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -4485,7 +4485,7 @@ You can freely access a huge library of build logs! @cindex package definition, editing So many packages, so many source files! The @command{guix edit} command -facilitates the life of packagers by pointing their editor at the source +facilitates the life of users and packagers by pointing their editor at the source file containing the definition of the specified packages. For instance: @example @@ -4494,9 +4494,15 @@ guix edit gcc@@4.9 vim @noindent launches the program specified in the @code{VISUAL} or in the -@code{EDITOR} environment variable to edit the recipe of GCC@tie{}4.9.3 +@code{EDITOR} environment variable to view the recipe of GCC@tie{}4.9.3 and that of Vim. +If you are using a Guix Git checkout (@pxref{Building from Git}), or +have created your own packages on ‘GUIX_PACKAGE_PATH’ (*note Defining +Packages::), you will be able to edit the package recipes. Otherwise, +you will be able to examine the read-only recipes for packages currently +in the store. + If you are using Emacs, note that the Emacs user interface provides the @kbd{M-x guix-edit} command and a similar functionality in the ``package info'' and ``package list'' buffers created by the @kbd{M-x