[slime-devel] Wrong type argument: arrayp, nil for C-c C-s
Tamas K Papp
tkpapp at gmail.com
Tue Apr 28 19:13:20 UTC 2009
On Tue, 28 Apr 2009 17:05:23 +0400, Stas Boukarev wrote:
> On Sun, Apr 26, 2009 at 3:22 AM, Tamas K Papp <tkpapp at gmail.com> wrote:
>> Hi,
>>
>> When trying to complete a symbol with C-c C-s, I get the error message
>>
>> Wrong type argument: arrayp, nil
>>
>> in the *Messages* buffer, I see
>>
>> char-syntax: Wrong type argument: arrayp, nil
>>
>> in *slime-events*:
>>
>> (:emacs-rex
>> (swank:arglist-for-echo-area
>> '(("make-instance")
>> ("bind")
>> ("defun"))
>> :arg-indices
>> '(0 2 5)
>> :print-right-margin 1000 :print-lines 1) ":istc-sunk" t 29)
>> (:return
>> (:ok "(make-instance class &allow-other-keys &rest initargs)") 29)
>> (:emacs-rex
>> (swank:arglist-for-echo-area
>> '(("make-instance" "'model")
>> ("bind")
>> ("defun"))
>> :arg-indices
>> '(2 2 5)
>> :print-right-margin 1000 :print-lines 1) ":istc-sunk" t 30)
>> (:return
>> (:ok "(make-instance 'model &key r sigma delta q h b beta m alpha
>> theta &allow-other-keys &rest ===> initargs <===)") 30)
>>
>> The cursor was standing at the end of this form:
>>
>> (make-instance 'model
>>
>> I am using the latest SLIME from CVS.
>>
>>
> The attached patch fixes this, perhaps not in the best fashion, here is
> the description:
>
> contrib/slime-parse.el (slime-make-form-spec-from-string): Added
> (set-syntax-table lisp-mode-syntax-table), because of this:
> (with-temp-buffer
> (erase-buffer)
> (set-syntax-table lisp-mode-syntax-table) (insert "'foo")
> (goto-char 1)
> (thing-at-point 'sexp)) => "'foo"
>
> Without set-syntax-table it returns nil. This fixes (make-instance 'foo
> C-c C-s
>
> (slime-parse-sexp-at-point): remove unused flets.
Thanks Stas,
It works fine. I applied it manually, but I am wondering when this
will be merged into the CVS?
Tamas
More information about the slime-devel
mailing list