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

Sebastian Tennant sebyte at smolny.plus.com
Sat Aug 29 14:20:50 UTC 2009


Quoth vanekl <vanek at acd.net>:
> Sebastian Tennant <sebyte <at> smolny.plus.com> writes:
>
>> 
>> 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
>
>
> Did you check your emacs available coding systems:

utf-8-unix is in the list:

 [...]
 utf-7-mac			   utf-7-unix
 utf-8				   utf-8-dos
 utf-8-mac			   utf-8-unix
 [...]

> What is LANG set to? (env var)

 (getenv "LANG")
 => en_GB.UTF-8

> Do you have these problems locally when using sbcl?

No.  If I run 'sbcl' in a shell buffer there's no problem at all.

> When you list coding systems (M-x list-coding-systems) do you see:
>
>  The supported Emacs character sets are:
>    ascii
>    eight-bit-control
>    eight-bit-graphic
>    latin-iso8859-1
>    mule-unicode-0100-24ff
>    mule-unicode-2500-33ff
>    mule-unicode-e000-ffff

No not quite.  I get this:

####################################################
# List of coding systems in the following format:
# MNEMONIC-LETTER -- CODING-SYSTEM-NAME
#   DOC-STRING
u -- mule-utf-8 (alias: utf-8)
[...]

####################################################
# The following coding systems are not yet loaded. #
####################################################
utf-7-mac
utf-7-dos
utf-7-unix
utf-7
[...]

My mode line reads 'uuu' but, perhaps significantly, utf-8-unix isn't in either
section of the above list.

> What coding system do you use when you start swank?
> (swank:create-server :port 4005 :dont-close t :coding-system "utf-8-unix")?

I don't have a form like that in my configuration.  My .emacs requires
'slime-autoloads which triggers this form:

 (eval-after-load "slime-autoloads"
   '(progn
      (setq slime-lisp-implementations '((sbcl
                                          ("sbcl" "--core"
                                           "/usr/local/lib/sbcl/sbcl.core-with-swank")
                                          :init (lambda (port-file _)
                                                  (format "(swank:start-server %S)\n"
                                                          port-file))
                                          :coding-system utf-8-unix)))
      (slime-setup '(slime-repl slime-scratch slime-asdf
                                slime-editing-commands slime-references
                                slime-highlight-edits))))


I'll try it without a custom core and get back to you.

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