emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] lisp babel


From: Nick Dokos
Subject: Re: [O] lisp babel
Date: Tue, 12 Apr 2016 14:37:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Colin Baxter <address@hidden> writes:

> Nick Dokos <ndokos <at> gmail.com> writes:
>
>> 
>> Nick Dokos <ndokos <at> gmail.com> writes:
>> 
>> > Colin Baxter <m43cap <at> yandex.com> writes:
>> >
>> >> Common Lisp in babel steems to have stopped working. With slime
>> >> running and (lisp . t) in my emacs init, I now get the error
>> >>
>> >> org-babel-execute:lisp: Cannot open load file: No such file or
>> >> directory, sly
>> >>
>> >> when I C-cc
>> >>
>> >> #+name: hello-world #+header: :var message="Hello World!" :exports
>> >> both #+begin_src lisp
>> >>   (princ message) #+end_src
>> >>
>> >> In the past, it worked. I thought either slime or sly were needed.
>> >>
>> >> I'm using org version release_8.3.4-718-g634e12.dirty and GNU Emacs
>> >> 25.1.50.1.
>> >
>> > commit d79835a821f24fdc32a0f46630f1b31c58fbbb4a introduced a new
>> > variable:
>> >
>> > ,----
>> > | org-babel-lisp-eval-fn is a variable defined in ‘ob-lisp.el’.  Its value
>> > | is "sly-eval"
>> > `----
>> >
>> > You can try setting it to "slime-eval", but it should probably default
>> > to "slime-eval".
>> >
>> > There is a typo in the documentation for this variable:
>> >
>> > "slime-val" -> "slime-eval".
>> >
>> 
>> Patch for the typo is attached.
>> 
>> --
>> Nick
>> 
>> 
>> Attachment (0001-Fix-typo-in-doc-string.patch): text/x-patch, 717 bytes
>
> Everything works fine with org 8.2.10, but I'm still having problems with
> release_8.3.4-718-g634e12. I've applied the attachment. I'm using
> slime.

To change the default evaluator back to slime, add

(setq org-babel-lisp-eval-fn "slime-eval")

to your init file somewhere.

The patch only fixes the typo in the documentation; it does not change
the default evaluator back to slime. Although I would probably vote to
set the default value of the variable back to "slime", I'm not much of a
CL user. People with more informed opinions than me might want to weigh
in here.

--
Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]