Re: macroexpansion (slime-expand-1) results in error

Luís Oliveira <[email protected]> Fri, 11 Dec 2015 14:33:44 +0000
Newsgroups gmane.lisp.slime.devel
Message-ID <CAB-HnLTHc9j-9YjSifgj+tZYng6DuER+JdSfLFbckpBBJ04+iQ@mail.gmail.com>
On Thu, Dec 10, 2015 at 8:02 PM, Mirko Vukovic <[email protected]> wrote:
>  10: (SWANK:EVAL-FOR-EMACS (SWANK:SWANK-EXPAND-1 NIL) "#:display-it" 65)

As Stas had anticipated, this happens when there's no s-exp starting
where the cursor (or point in Emacs-speak) is  and slime-sexp-at-point
returns NIL, but swank-expand-1 is expecting a string. You must place
the cursor on the opening parenthesis.

Perhaps slime-expand-1 could be more DWIM-ish and try harder to find a
s-exp to macro expand, but certainly signalling a CL TYPE-ERROR is
unfortunate. As Stas mentioned, this error has been in SLIME for a
very long time. I have a fix to avoid the error that I'll push
shortly.

-- 
Luís Oliveira
http://kerno.org/~luis/