all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Diego Nicola Barbato <dnbarbato@posteo.de>
To: rekado@elephly.net
Cc: help-guix@gnu.org
Subject: StumpWM with SLIME
Date: Wed, 18 Oct 2017 00:53:20 +0200	[thread overview]
Message-ID: <87zi8ppesf.fsf@GlaDOS.home> (raw)
In-Reply-To: 87fuklywam.fsf@elephly.net

Hello Ricardo,

> Hi Guix,

> I’m trying out StumpWM and I’d like to be able to interact with it via
> Emacs using SLIME.

> Here’s what I installed:

>   guix package -i emacs-slime sbcl-stumpwm:bin

> My ~/.stumpwmrc looks like this:

> --8<---------------cut here---------------start------------->8---
> (in-package :stumpwm)
> ;; Find fonts in my Guix profile
> (run-shell-command "xset +fp ~/.guix-profile/share/fonts/X11/100dpi/")
> ;; Change window font to something readable
> (set-font "-adobe-courier-medium-r-normal--14-100-100-100-m-90-iso8859-1")

> ;; TODO: this works in the sbcl REPL, but fails when starting stumpwm
> (require "asdf")
> (load 
> "/home/rekado/.guix-profile/share/emacs/site-lisp/guix.d/slime-2.18/swank.asd")
> (require :swank)
> --8<---------------cut here---------------end--------------->8---

> The last three lines are supposed to load swank, which is part of
> SLIME.  When running these lines in a separate sbcl REPL everything
> seems to be okay.  But as part of my ~/.stumpwmrc this isn’t working.

> I get an error:

>     Don’t know how to REQUIRE SB-INTROSPECT

> When I try this again in StumpWM using “C-t : (require :swank)” I get a
> different error:

>     ASDF could not load swank because
>     The variable SWANK::*AFTER-INIT-HOOK* is unbound..

> Does this work for anyone?

> -- 
> Ricardo

I have recently encountered the same problem. According to
http://slime-devel.common-lisp.narkive.com/VMYanrEl this error happens
when the environment variable SBCL_HOME is not set (This can be checked
with "C-t : (sb-ext:posix-getenv "SBCL_HOME")", which will return nil if
SBCL_HOME is not set).
When running "(sb-ext:posix-getenv "SBCL_HOME")" in a separate sbcl REPL
however it returns "/gnu/store/...-sbcl-1.3.7/lib/sbcl", which explains
why the error only appears in stumpwm.
To work around this problem I added
"(sb-posix:putenv "SBCL_HOME=/home/diego/.guix-profile/lib/sbcl")" to my
.stumpwmrc.

HTH!
Diego

             reply	other threads:[~2017-10-17 22:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-17 22:53 Diego Nicola Barbato [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-01-15  0:57 StumpWM with SLIME Ricardo Wurmus

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=87zi8ppesf.fsf@GlaDOS.home \
    --to=dnbarbato@posteo.de \
    --cc=help-guix@gnu.org \
    --cc=rekado@elephly.net \
    /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.