From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bug: ob-clojure.el depends on deprecated swank-clojure [7.7] Date: Thu, 12 Jan 2012 23:09:08 -0700 Message-ID: <87k44wf81n.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlaKT-0000lV-Uf for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 01:09:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlaKS-0004f0-Gc for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 01:09:33 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:53747 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RlaKS-0004ew-A9 for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 01:09:32 -0500 In-Reply-To: (Andrew Cheng's message of "Thu, 12 Jan 2012 12:46:18 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andrew Cheng Cc: emacs-orgmode@gnu.org 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? Thanks, Andrew Cheng 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 > > Emacs =C2=A0: GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.5) > =C2=A0of 2011-08-14 on rothera, modified by Debian > Package: Org-mode version 7.7 > > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > =C2=A0org-export-latex-after-initial-vars-hook '(org-beamer-after-initial= -vars) > =C2=A0org-speed-command-hook '(org-speed-command-default-hook > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 org-babel-speed-command-hook) > =C2=A0org-metaup-hook '(org-babel-load-in-session-maybe) > =C2=A0org-after-todo-state-change-hook '(org-clock-out-if-current) > =C2=A0org-babel-tangle-lang-exts '(("clojure" . "clj") ("emacs-lisp" . "e= l")) > =C2=A0org-export-latex-format-toc-function 'org-export-latex-format-toc-d= efault > =C2=A0org-tab-first-hook '(org-hide-block-toggle-maybe > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 org-src-native-tab-command-maybe > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 org-babel-hide-result-toggle-maybe) > =C2=A0org-src-mode-hook '(org-src-babel-configure-edit-buffer > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0org-src-mode-configure-edit-buffer) > =C2=A0org-confirm-shell-link-function 'yes-or-no-p > =C2=A0org-export-first-hook '(org-beamer-initialize-open-trackers) > =C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-text) > =C2=A0org-blank-before-new-entry nil > =C2=A0org-babel-pre-tangle-hook '(save-buffer) > =C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-dr= awers > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org-cycle-= show-empty-lines > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org-optimi= ze-window-after-visibility-change) > =C2=A0org-publish-project-alist '(("org-notes" :base-directory "/home/not= root/org/" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :base-extension "org" :publishing-directory > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/home/notroot/public_html/" :recursive t > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :publishing-function org-publish-org-to-html > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :headline-levels 4 :auto-preamble t) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("org-static" :base-directory > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/home/notroot/org/" :base-extension > > "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" > :publishing-directory "/home/notroot/public_html/" :recursive t > :publishing-function org-publish-attachment) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("org" :components ("org-notes" "org-static"= ))) > =C2=A0org-export-preprocess-before-normalizing-links-hook > '(org-remove-file-link-modifiers) > =C2=A0org-mode-hook '(#[nil "\300\301\302\303\304$\207" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[org= -add-hook change-major-mode-hook org-show-block-all > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 app= end local] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A05] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#[nil "\300= \301\302\303\304$\207" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[org= -add-hook change-major-mode-hook > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org= -babel-show-result-all append local] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A05] > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0org-babel-r= esult-hide-spec org-babel-hide-all-hashes) > =C2=A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 org-babel-execute-safely-maybe) > =C2=A0org-confirm-elisp-link-function 'yes-or-no-p > =C2=A0org-export-interblocks '((lob org-babel-exp-lob-one-liners) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (src org-babel-exp-inline-src-blocks)) > =C2=A0org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > =C2=A0org-occur-hook '(org-first-headline-recenter) > =C2=A0org-export-preprocess-before-selecting-backend-code-hook > '(org-beamer-select-beamer-code) > =C2=A0org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fi= x-toc > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0org-beamer-auto-fragile-frames > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0org-beamer-place-default-actions-for-= lists) > =C2=A0org-metadown-hook '(org-babel-pop-to-session-maybe) > =C2=A0org-export-blocks '((src org-babel-exp-src-block nil) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(comment org-export-blocks-format-comment t) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(ditaa org-export-blocks-format-ditaa nil) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(dot org-export-blocks-format-dot nil)) > =C2=A0) > --=20 Eric Schulte http://cs.unm.edu/~eschulte/