Re: Getting the source file pathname
Chaitanya Gupta <[email protected]> Sun, 10 Dec 2017 01:51:22 +0530
| Newsgroups | gmane.lisp.slime.devel |
|---|---|
| Message-ID | <CANOhSrzpduVf7S+Dhq+RmwA3ayYEdSB_6DBWazesV=kV2+iAGA@mail.gmail.com> |
On 10 December 2017 at 01:46, Chaitanya Gupta <[email protected]> wrote: > On 10 December 2017 at 01:35, Luís Oliveira <[email protected]> wrote: >> 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)).) > > Good point. Perhaps we can bind a symbol in the SWANK package instead? Just read the hyperspec again and it says: "The consequences are unspecified if an attempt is made to assign or bind either of these variables." http://www.lispworks.com/documentation/HyperSpec/Body/v_cmp_fi.htm http://www.lispworks.com/documentation/HyperSpec/Body/v_ld_pns.htm So binding the CL variables is not guaranteed to work anyways :-( Chaitanya > >> >> Cheers, >> >> -- >> Luís Oliveira >> http://kerno.org/~luis/