macroexpansion (slime-expand-1) results in error
Luís Oliveira
luismbo at gmail.com
Fri Dec 11 14:33:44 UTC 2015
On Thu, Dec 10, 2015 at 8:02 PM, Mirko Vukovic <mirko.vukovic at gmail.com> 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/
More information about the slime-devel
mailing list