0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-23 15:10:43 +00:00
org-mode/contrib/babel/lisp/langs
Michael Sperber 6fc2ea3b9b Xemacs incompatibilities
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.
2010-05-26 22:45:01 -06:00
..
org-babel-asymptote.el org-babel-expand-body:asymptote 2010-04-23 10:09:58 -06:00
org-babel-C.el org-babel-c: now using org-babel-read on outline-property parameters 2010-04-23 10:10:00 -06:00
org-babel-clojure.el babel: ob-emacs-lisp and ob-clojure now only wrap bodies in `let' forms when variables are present 2010-04-24 09:21:14 -06:00
org-babel-css.el org-babel-expand-body:css 2010-04-23 10:09:58 -06:00
org-babel-ditaa.el org-babel-expand-body:ditaa 2010-04-23 10:09:58 -06:00
org-babel-dot.el org-babel-expand-body:dot 2010-04-23 10:09:58 -06:00
org-babel-emacs-lisp.el babel: ob-emacs-lisp now wraps body in a progn on execute 2010-04-27 13:55:48 -06:00
org-babel-gnuplot.el babel: fixed bug in org-babel-execute:gnuplot related to body-expand changes 2010-04-23 10:10:00 -06:00
org-babel-haskell.el org-babel-expand-body:haskell 2010-04-23 10:09:58 -06:00
org-babel-latex.el org-babel-expand-body:latex 2010-04-23 10:09:58 -06:00
org-babel-matlab.el babel: matlab: detect end of evaluation under Emacs Link 2010-05-03 21:45:01 -04:00
org-babel-ocaml.el org-babel-expand-body:ocaml 2010-04-23 10:09:58 -06:00
org-babel-octave.el Xemacs incompatibilities 2010-05-26 22:45:01 -06:00
org-babel-oz.el org-babel-expand-body:oz 2010-04-23 10:09:59 -06:00
org-babel-perl.el org-babel-expand-body:perl 2010-04-23 10:09:59 -06:00
org-babel-python.el Xemacs incompatibilities 2010-05-26 22:45:01 -06:00
org-babel-R.el Xemacs incompatibilities 2010-05-26 22:45:01 -06:00
org-babel-ruby.el org-babel-expand-body:ruby 2010-04-23 10:09:59 -06:00
org-babel-sass.el babel: fixed bug in org-babel-expand-body:sass 2010-04-23 10:10:00 -06:00
org-babel-screen.el babel: Fix org-babel-screen after expand changes 2010-05-02 21:30:13 -04:00
org-babel-sh.el babel: ob-sh.el now respects the :results "scalar" option 2010-05-07 17:18:38 -06:00
org-babel-sql.el org-babel-expand-body:sql 2010-04-23 10:09:59 -06:00