[slime-devel] Evaluating elisp from lisp

Sharad Pratap sh4r4d at gmail.com
Tue Aug 3 13:12:48 UTC 2010


Thanks for valuable information about swank::eval-in-emacs

I tried it in scratch slime and output I am able to get in
message buffer.

But if I am running it in Stumpwm process with stumpwm eval command,
where I have started swank server, I am not able to get output, the
error I am pasting.

--------------------------------------------------------------------------------------------
18:22:23 Outputting a message:
*The value NIL is not of type SWANK::CONNECTION.0: \
         (SB-DEBUG::MAP-BACKTRACE #<CLOSURE (LAMBDA #) {B799655}>)[:EXTERNAL]
 1: (SB-DEBUG:BACKTRACE 100 #<SB-IMPL::STRING-OUTPUT-STREAM {B799601}>)
 2: (STUMPWM::BACKTRACE-STRING)
 3: (ERR "^B^1*~A")[:EXTERNAL]
 4: (STUMPWM::EVAL-LINE "(swank::eval-in-emacs '(message \"sdfsdgdfg\"))")
 5: (STUMPWM::CALL-INTERACTIVELY
     "eval"
     #S(STUMPWM::ARGUMENT-LINE :STRING "eval" :START 5))
 6: (STUMPWM::EVAL-COMMAND "eval" T)
 7: ((LABELS #:G300) :CODE 49 :STATE 4)
 8: (STUMPWM::HANDLE-EVENT)[:EXTERNAL]
 9: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK))
 10: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-RECURSIVE-LOCK]291))
 11: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK
      #<CLOSURE (FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK) {B797DCF5}>
      #S(SB-THREAD:MUTEX
         :NAME "CLX Event Lock"
         :%OWNER #<SB-THREAD:THREAD "initial thread" RUNNING {B475649}>
         :STATE 1))
 12: (XLIB:PROCESS-EVENT #<XLIB:DISPLAY :0 (The X.Org Foundation R10706000)>)[:EXTERNAL]
 13: (STUMPWM::STUMPWM-INTERNAL-LOOP)
 14: (STUMPWM::STUMPWM-INTERNAL ":0")
 15: (STUMPWM ":0")
 16: ((LAMBDA ()))
 17: ((LABELS SB-IMPL::RESTART-LISP))
--------------------------------------------------------------------------------------------

I have started the swank server here by this way
--------------------------------------------------------------------------------------------
(swank:create-server :port 4005
                           :style swank:*communication-style*
                           :dont-close t)
--------------------------------------------------------------------------------------------

then connected slime in emacs with it.

--
Regards,
-sharad





More information about the slime-devel mailing list