emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrew Cheng <achengs@gmail.com>
To: Eric Schulte <eric.schulte@gmx.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: ob-clojure.el depends on deprecated swank-clojure [7.7]
Date: Fri, 13 Jan 2012 14:28:56 -0500	[thread overview]
Message-ID: <CALoZYsBzxvyf0HrV8CMupKNmd-NnOWs17P4_Vf1wcMyek3_kAA@mail.gmail.com> (raw)
In-Reply-To: <87k44wf81n.fsf@gmx.com>

I passed the question along to Phil Hagelberg in that Clojure google
group thread. His reply:

"Yes, clojure-test-mode uses both slime-eval and slime-eval-async; he
should pick one of these like so:

(defun clojure-test-eval (string &optional handler)
 (slime-eval-async `(swank:eval-and-grab-output ,string)
                   (or handler #'identity)))

(defun clojure-test-eval-sync (string)
 (slime-eval `(swank:eval-and-grab-output ,string)))

Actually swank:interactive-eval-region and friends are not elisp
functions; they are Clojure functions."

(... end of reply) In case it helps, Stuart Sierra says he got
org-babel and clojure working together. His dotfiles are at
https://github.com/stuartsierra/dotfiles

On Fri, Jan 13, 2012 at 1:09 AM, Eric Schulte <eric.schulte@gmx.com> wrote:
> I personally no longer use Clojure (having graduated to Common Lisp :))
> so I'm not abreast of the current Clojure environment.
>
> The only function ob-clojure uses from swank-clojure is
> `swank:interactive-eval-region' (used with `slime-eval') in the
> `org-babel-execute:clojure' function.  Which function would now be used
> to evaluate a region of clojure code?  Would `slime-eval-region'
> suffice?
>
> Andrew Cheng <achengs@gmail.com> writes:
>
>> ------------------------------------------------------------------------
>>
>> Phil Hagelberg has said that the swank-clojure elisp package has been
>> deprecated and should not be used [1]. My version of ob-clojure.el
>> requires swank-clojure. If I don't have the swank-clojure package, I
>> get "org-babel-execute:clojure:Cannot open load file: swank-clojure".
>> If I follow the instructions at [2] and get the swank-clojure package,
>> I get past this error. Is org using a deprecated package, and is this
>> a bug? Thanks in advance.
>>
>> [1] https://groups.google.com/forum/#!starred/clojure/HT8wixvD3GE
>> [2] http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00629.html

  reply	other threads:[~2012-01-13 19:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12 17:46 Bug: ob-clojure.el depends on deprecated swank-clojure [7.7] Andrew Cheng
2012-01-13  6:09 ` Eric Schulte
2012-01-13 19:28   ` Andrew Cheng [this message]
2012-01-13 19:48     ` Eric Schulte
2012-01-13 19:58       ` Andrew Cheng
2012-01-13 20:10         ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALoZYsBzxvyf0HrV8CMupKNmd-NnOWs17P4_Vf1wcMyek3_kAA@mail.gmail.com \
    --to=achengs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric.schulte@gmx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).