all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] doc: Fix 'geiser-guile-load-path' example.
Date: Sat, 14 Nov 2015 21:56:17 +0300	[thread overview]
Message-ID: <87k2pkl8a6.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

(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?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-doc-Fix-geiser-guile-load-path-example.patch --]
[-- Type: text/x-diff, Size: 954 bytes --]

From a7b4af5d3115d6caa9129cdf8a9933f640742063 Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
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


             reply	other threads:[~2015-11-14 18:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-14 18:56 Alex Kost [this message]
2015-11-15 17:41 ` [PATCH] doc: Fix 'geiser-guile-load-path' example Ludovic Courtès
2015-11-17  8:04   ` Alex Kost
2015-11-17 16:16     ` Ludovic Courtès
2015-11-17 17:22       ` Alex Kost
2015-11-17 21:40         ` Ludovic Courtès
2015-11-18 17:26           ` Alex Kost
2015-11-18 21:36             ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k2pkl8a6.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.