[slime-devel] TYPE ERROR: The value 9 is not of type LIST

Sebastian Tennant sebyte at smolny.plus.com
Sat Aug 29 12:23:11 UTC 2009


Quoth vanekl <vanek at acd.net>:
>> Non-ASCII characters break the connection to the REPL:

> Check to see whether you have set the slime connection to utf8.
> You should have something like this is your .emacs file:
>
> (defun start-slime ()
>   (interactive)
>   (setq slime-net-coding-system 'utf-8-unix)
>   (slime-connect "127.0.0.1" 4005))

Thanks for such a quick response.

I use an eval-after-load form:

 (eval-after-load "slime"
   '(progn
      (global-set-key "\C-cs" 'slime-selector)
      (setq slime-net-coding-system 'utf-8-unix)
      ))

Unfortunately, setting slime-net-coding-system makes no difference:

 CL-USER> "ğ"
 "ğ"
 ;; hung

 -|*inferior-lisp*|-

 wait-for-event: (COMMON-LISP:OR (:EMACS-REX . SWANK::_) (:EMACS-CHANNEL-SEND . SWANK::_)) NIL
 READ: "(:emacs-rex (swank:listener-eval \"\\\"\x00C4\x009F\\\"
 \") \"COMMON-LISP-USER\" :repl-thread 5)"
 dispatch-event: (:EMACS-REX (SWANK:LISTENER-EVAL "\"\x00C4\x009F\"
 ") "COMMON-LISP-USER" :REPL-THREAD 5)
 send-event: #<SB-THREAD:THREAD "repl-thread" RUNNING {B1B2DB9}> (:EMACS-REX (SWANK:LISTENER-EVAL "\"\x00C4\x009F\"
 ") "COMMON-LISP-USER" 5)
 wait-for-event: (COMMON-LISP:OR (:EMACS-REX . SWANK::_) (:EMACS-CHANNEL-SEND . SWANK::_)) NIL
 dispatch-event: (:WRITE-STRING "\"\x00C4\x009F\"
 " :REPL-RESULT)
 WRITE: (:write-string "\"\x00C4\x009F\"
 " :repl-result)
 dispatch-event: (:RETURN #<SB-THREAD:THREAD "repl-thread" RUNNING {B1B2DB9}> (:OK NIL) 5)
 WRITE: (:return (:ok nil) 5)
 READ: "9(:e"
 dispatch-event: 9
 close-connection: The value 9 is not of type COMMON-LISP:LIST. ...
 ;; Event history end.
 ;; Backtrace:
 (0
  ((LAMBDA (SWANK-BACKEND::DEBUGGER-LOOP-FN)) #<FUNCTION (LAMBDA #) {99DAC1D}>))
 (1 (SWANK::SAFE-BACKTRACE))
 (2 ((FLET #:LAMBDA1493) #<TYPE-ERROR {B7F09C1}>))
 (3 (SIGNAL #<TYPE-ERROR {B7F09C1}>)[:EXTERNAL])
 (4 (ERROR TYPE-ERROR)[:EXTERNAL])
 (5
  (SB-KERNEL::OBJECT-NOT-LIST-ERROR-HANDLER #<unavailable argument> #.(SB-SYS:INT-SAP #XB712FF48) #<SB-ALIEN-INTERNALS:ALIEN-VALUE :SAP #XB712FC1C :TYPE (* (STRUCT SB-VM::OS-CONTEXT-T-STRUCT))> (144)))
 (6
  (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #XB712FC1C) #<unavailable argument>))
 (7 ("foreign function: #x8066F7B"))
 (8 ("foreign function: #x8052EC8"))
 (9 ("foreign function: #x805882E"))
 (10 ("foreign function: #x805672B"))
 (11 (SWANK::DISPATCH-EVENT 9))
 (12 (SWANK::DISPATCH-LOOP #<SWANK::CONNECTION {AE7CBC1}>))
 (13 (SWANK::CONTROL-THREAD #<SWANK::CONNECTION {AE7CBC1}>))
 (14 ((FLET #:WITHOUT-INTERRUPTS-BODY-[BLOCK375]380)))
 (15 ((FLET SB-THREAD::WITH-MUTEX-THUNK)))
 (16 ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-MUTEX]267)))
 (17 (SB-THREAD::CALL-WITH-MUTEX ..))
 (18 ((LAMBDA ())))
 (19 ("foreign function: #x8066F7B"))
 (20 ("foreign function: #x8052E4D"))
 (21 ("foreign function: #x805E060"))
 (22 ("foreign function: #xB7FC7F3B"))
 ;; Connection to Emacs lost. [
 ;;  condition: The value 9 is not of type LIST.
 ;;  type: TYPE-ERROR
 ;;  encoding: NIL style: :SPAWN dedicated: NIL]

Regards,

Sebastian
-- 
Emacs' AlsaPlayer - Music Without Jolts
Lightweight, full-featured and mindful of your idyllic happiness.
http://home.gna.org/eap





More information about the slime-devel mailing list