* lisp babel
@ 2016-04-11 11:04 Colin Baxter
2016-04-11 15:54 ` Nick Dokos
2016-04-11 16:01 ` John Kitchin
0 siblings, 2 replies; 9+ messages in thread
From: Colin Baxter @ 2016-04-11 11:04 UTC (permalink / raw)
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lisp babel
2016-04-11 11:04 lisp babel Colin Baxter
@ 2016-04-11 15:54 ` Nick Dokos
2016-04-11 19:08 ` Nick Dokos
2016-04-11 16:01 ` John Kitchin
1 sibling, 1 reply; 9+ messages in thread
From: Nick Dokos @ 2016-04-11 15:54 UTC (permalink / raw)
To: emacs-orgmode
Colin Baxter <m43cap@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".
See etc/ORG-NEWS for the announcement.
--
Nick
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lisp babel
2016-04-11 11:04 lisp babel Colin Baxter
2016-04-11 15:54 ` Nick Dokos
@ 2016-04-11 16:01 ` John Kitchin
1 sibling, 0 replies; 9+ messages in thread
From: John Kitchin @ 2016-04-11 16:01 UTC (permalink / raw)
To: Colin Baxter; +Cc: emacs-orgmode
Maybe a new default has been setup? I recall a recent discussion about
sly. Maybe try setting this to your lisp?
(setq inferior-lisp-program "/usr/local/bin/sbcl")
I am not sure if you also need this:
(require 'slime)
(slime-setup)
(slime)
I only have a little experience with other lisps.
Colin Baxter 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.
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lisp babel
2016-04-11 15:54 ` Nick Dokos
@ 2016-04-11 19:08 ` Nick Dokos
2016-04-12 17:33 ` Colin Baxter
2016-04-12 20:13 ` Nicolas Goaziou
0 siblings, 2 replies; 9+ messages in thread
From: Nick Dokos @ 2016-04-11 19:08 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]
Nick Dokos <ndokos@gmail.com> writes:
> Colin Baxter <m43cap@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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix typo in org-babel-lisp-eval-fn doc string. --]
[-- Type: text/x-patch, Size: 717 bytes --]
From 34d7e1f52008c303ae48fce88efacfbe21859b5a Mon Sep 17 00:00:00 2001
From: Nick Dokos <ndokos@redhat.com>
Date: Mon, 11 Apr 2016 15:05:35 -0400
Subject: [PATCH] Fix typo in doc string.
---
lisp/ob-lisp.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ob-lisp.el b/lisp/ob-lisp.el
index 0ed4d84..443a78d 100644
--- a/lisp/ob-lisp.el
+++ b/lisp/ob-lisp.el
@@ -40,7 +40,7 @@
(defcustom org-babel-lisp-eval-fn "sly-eval"
"The function to be called to evaluate code on the Lisp side.
-It can be set to either \"sly-eval\" or \"slime-val\"."
+It can be set to either \"sly-eval\" or \"slime-eval\"."
:group 'org-babel
:version "25.1"
:package-version '(Org . "8.3")
--
2.7.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: lisp babel
2016-04-11 19:08 ` Nick Dokos
@ 2016-04-12 17:33 ` Colin Baxter
2016-04-12 18:37 ` Nick Dokos
2016-04-12 20:13 ` Nicolas Goaziou
1 sibling, 1 reply; 9+ messages in thread
From: Colin Baxter @ 2016-04-12 17:33 UTC (permalink / raw)
To: emacs-orgmode
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.
Here's the backtrace:
Debugger entered--Lisp error: (file-error "Cannot open load file" "No such
file or directory" "sly")
require(sly)
org-babel-execute:lisp("(princ message)" ((:var message . "Hello World!")
(:colname-names) (:rowname-names) (:result-params "replace") (:result-type .
value) (:comments . "") (:shebang . "") (:cache . "yes") (:padline . "")
(:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "replace")
(:session . "none") (:hlines . "no")))
org-babel-execute-src-block(nil)
org-babel-execute-src-block-maybe()
org-babel-execute-maybe()
org-babel-execute-safely-maybe()
run-hook-with-args-until-success(org-babel-execute-safely-maybe)
org-ctrl-c-ctrl-c(nil)
funcall-interactively(org-ctrl-c-ctrl-c nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)
command-execute(org-ctrl-c-ctrl-c)
Colin.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lisp babel
2016-04-12 17:33 ` Colin Baxter
@ 2016-04-12 18:37 ` Nick Dokos
2016-04-12 18:58 ` Thomas S. Dye
0 siblings, 1 reply; 9+ messages in thread
From: Nick Dokos @ 2016-04-12 18:37 UTC (permalink / raw)
To: emacs-orgmode
Colin Baxter <m43cap@yandex.com> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lisp babel
2016-04-12 18:37 ` Nick Dokos
@ 2016-04-12 18:58 ` Thomas S. Dye
2016-04-12 20:14 ` Nicolas Goaziou
0 siblings, 1 reply; 9+ messages in thread
From: Thomas S. Dye @ 2016-04-12 18:58 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode
Nick Dokos writes:
> 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.
I agree with Nick. The default should be "slime-eval" so existing
setups and work-flows aren't broken.
All the best,
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lisp babel
2016-04-11 19:08 ` Nick Dokos
2016-04-12 17:33 ` Colin Baxter
@ 2016-04-12 20:13 ` Nicolas Goaziou
1 sibling, 0 replies; 9+ messages in thread
From: Nicolas Goaziou @ 2016-04-12 20:13 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode
Hello,
Nick Dokos <ndokos@gmail.com> writes:
> Patch for the typo is attached.
Applied. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lisp babel
2016-04-12 18:58 ` Thomas S. Dye
@ 2016-04-12 20:14 ` Nicolas Goaziou
0 siblings, 0 replies; 9+ messages in thread
From: Nicolas Goaziou @ 2016-04-12 20:14 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: Nick Dokos, emacs-orgmode
Hello,
"Thomas S. Dye" <tsd@tsdye.com> writes:
> I agree with Nick. The default should be "slime-eval" so existing
> setups and work-flows aren't broken.
I didn't notice the patch changed the default value. This is now fixed.
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-04-12 20:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 11:04 lisp babel Colin Baxter
2016-04-11 15:54 ` Nick Dokos
2016-04-11 19:08 ` Nick Dokos
2016-04-12 17:33 ` Colin Baxter
2016-04-12 18:37 ` Nick Dokos
2016-04-12 18:58 ` Thomas S. Dye
2016-04-12 20:14 ` Nicolas Goaziou
2016-04-12 20:13 ` Nicolas Goaziou
2016-04-11 16:01 ` John Kitchin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).