Getting the source file pathname

Luís Oliveira luismbo at
Sat Dec 9 20:05:09 UTC 2017

On Sat, Dec 9, 2017 at 7:04 PM, Chaitanya Gupta <mail at> wrote:
> However it fails when I use slime-compile-defun, slime-eval-defun or
> slime-eval-last-expression. Shouldn't slime bind
> *compile-file-pathname*, *load-pathname*, etc. when these functions
> are run?

Regarding slime-compile-defun, maybe. However, it's not
straightforward because we call COMPILE-FILE and LOAD and it's those
two functions take care of binding these special variables.

For the eval functions, maybe not. They're more akin to calling EVAL
on the expression (or typing it out at the REPL). (Try for instance
slime-eval-last-expression with this expression: (eval-when
(:load-toplevel) (print 'hello)).)


Luís Oliveira

More information about the slime-devel mailing list