mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-23 15:10:43 +00:00
6fc2ea3b9b
Carsten Dominik <carsten.dominik@gmail.com> writes: > On May 17, 2010, at 4:39 PM, Michael Sperber wrote: > >> In particular, fixing the require won't be enough: org-babel-python.el >> uses `run-python' and interacts with the inferior Python, whereas >> python-mode.el defines `py-shell'. >> >> Should I try to abstract over the differences? > > Yes, this would be much appreciated. (I think, Eric or Dan?) OK, I've attached a patch that makes `org-babel-python' work on XEmacs. Most of the issues are pure XEmacs issues. Notes: - XEmacs doesn't have [[:digit:]] - I hope to rectify this in the future, but it seems there's no downside in this particular case to replacing by [0-9]. - XEmacs doesn't have `move-end-of-line', but does have `end-of-line'. I don't understand the intent of having both of these, but the code seems fine with `end-of-line'. - It seems there are way too few `require's throughout org-babel. I don't know if it's OK to add the ones I needed. - `org-babel-python-evaluate' looked broken as-is: It doesn't use the `body' argument properly, the result is (I think) processed in the wrong order and not properly split into lines. I've fixed all these, but a review is probably in order. |
||
---|---|---|
.. | ||
org-babel-asymptote.el | ||
org-babel-C.el | ||
org-babel-clojure.el | ||
org-babel-css.el | ||
org-babel-ditaa.el | ||
org-babel-dot.el | ||
org-babel-emacs-lisp.el | ||
org-babel-gnuplot.el | ||
org-babel-haskell.el | ||
org-babel-latex.el | ||
org-babel-matlab.el | ||
org-babel-ocaml.el | ||
org-babel-octave.el | ||
org-babel-oz.el | ||
org-babel-perl.el | ||
org-babel-python.el | ||
org-babel-R.el | ||
org-babel-ruby.el | ||
org-babel-sass.el | ||
org-babel-screen.el | ||
org-babel-sh.el | ||
org-babel-sql.el |