Xemacs incompatibilities
commit6fc2ea3b9b36eeaf6f3b315cc09cbe1209468fa0
authorMichael Sperber <sperber@deinprogramm.de>
Mon, 24 May 2010 19:22:50 +0000 (24 19:22 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Thu, 27 May 2010 04:45:01 +0000 (26 22:45 -0600)
treeb9ab934d322a01e587bbfcab17f8eb312094d254
parent8b174b0d368e981846fe20dbbc9afcd105dd7d8f
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.
contrib/babel/lisp/langs/org-babel-R.el
contrib/babel/lisp/langs/org-babel-octave.el
contrib/babel/lisp/langs/org-babel-python.el
contrib/babel/lisp/org-babel-lob.el
contrib/babel/lisp/org-babel-tangle.el
contrib/babel/lisp/org-babel.el