From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH] doc: Fix 'geiser-guile-load-path' example. Date: Sat, 14 Nov 2015 21:56:17 +0300 Message-ID: <87k2pkl8a6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxfzt-0006y9-Dw for guix-devel@gnu.org; Sat, 14 Nov 2015 13:56:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zxfzo-00024H-A5 for guix-devel@gnu.org; Sat, 14 Nov 2015 13:56:25 -0500 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:33392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxfzo-000242-2l for guix-devel@gnu.org; Sat, 14 Nov 2015 13:56:20 -0500 Received: by lbbkw15 with SMTP id kw15so69892224lbb.0 for ; Sat, 14 Nov 2015 10:56:19 -0800 (PST) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id q1sm4123220lbb.5.2015.11.14.10.56.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Nov 2015 10:56:18 -0800 (PST) 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain (add-to-list 'geiser-guile-load-path 'foo) errors if "geiser-guile.el" is not loaded yet, so I think it's better to put it inside 'with-eval-after-load', WDYT? --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-doc-Fix-geiser-guile-load-path-example.patch >From a7b4af5d3115d6caa9129cdf8a9933f640742063 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Sat, 14 Nov 2015 21:13:07 +0300 Subject: [PATCH] doc: Fix 'geiser-guile-load-path' example. Reported by marusich on #guix. * doc/contributing.texi (The Perfect Setup): Wrap modifying 'geiser-guile-load-path' into 'with-eval-after-load'. --- doc/contributing.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/contributing.texi b/doc/contributing.texi index cdc3f6d..55b844a 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -141,7 +141,8 @@ that it finds source files from your checkout: @lisp ;; @r{Assuming the Guix checkout is in ~/src/guix.} -(add-to-list 'geiser-guile-load-path "~/src/guix") +(with-eval-after-load 'geiser-guile + (add-to-list 'geiser-guile-load-path "~/src/guix")) @end lisp To actually edit the code, Emacs already has a neat Scheme mode. But in -- 2.6.1 --=-=-=--