unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: 宋文武 <iyzsong@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: geiser: Symlink Guile modules to the right 'guilesitedir'.
Date: Sun, 21 Jun 2015 17:05:15 +0300	[thread overview]
Message-ID: <877fqxyx5w.fsf@gmail.com> (raw)
In-Reply-To: <87ioahtcx6.fsf@gmail.com> ("宋文武"'s message of "Sun, 21 Jun 2015 21:21:25 +0800")

宋文武 (2015-06-21 16:21 +0300) wrote:

> The previous patch was intend to fix a issue that manually spawned Guile
> doesn't know the geiser module.
>
> When discuss this issue in IRC with alezost, I suddenly notice that add
> a simple '(require 'geiser-install)' to my init.el make it work.
>
> Here is the new patch for '/etc/emacs/site-start.el' (not tested yet!):
>
>
> From d26e6299c9d468ff4a745a7efe9ea4f1a5d7c63a Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@gmail.com>
> Date: Sun, 21 Jun 2015 21:09:42 +0800
> Subject: [PATCH] system: emacs-site-file: Use 'geiser-install to load geiser.
>
> Suggested by Alex Kost <alezost@gmail.com>.
>
> * gnu/system.scm (emacs-site-file): Use 'geiser-install to load geiser
>   instead of setting 'geiser-guile-load-path' manually.
> ---
>  gnu/system.scm | 8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/gnu/system.scm b/gnu/system.scm
> index 565d6c1..82b7fbc 100644
> --- a/gnu/system.scm
> +++ b/gnu/system.scm
> @@ -391,12 +391,8 @@ settings for 'guix.el' to work out-of-the-box."
>                   ;; Attempt to load guix.el.
>                   (require 'guix-init nil t)
>  
> -                 (when (require 'geiser-guile nil t)
> -                   ;; Make sure Geiser's Scheme modules are in Guile's search
> -                   ;; path.
> -                   (add-to-list
> -                    'geiser-guile-load-path
> -                    "/run/current-system/profile/share/geiser/guile")))))
> +                 ;; Attempt to load geiser.
> +                 (require 'geiser-install nil t))))
>  
>  (define (emacs-site-directory)
>    "Return the Emacs site directory, aka. /etc/emacs."

I didn't test it but I think it should work, as according to the geiser
manual (info "(geiser) From the source's mouth"), requiring
'geiser-install' is the proper way to set up Geiser (that's why we
symlink "geiser-install.el" by "geiser-autoloads.el" in a geiser package
recipe).

-- 
Alex

  reply	other threads:[~2015-06-21 14:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-21 12:32 [PATCH] gnu: geiser: Symlink Guile modules to the right 'guilesitedir' 宋文武
2015-06-21 13:21 ` 宋文武
2015-06-21 14:05   ` Alex Kost [this message]
2015-06-22 19:51 ` Ludovic Courtès
2015-06-23  6:20   ` 宋文武

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=877fqxyx5w.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=iyzsong@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).