Browse Source

XEmacs compatibility

Carsten Dominik 15 years ago
parent
commit
38b4fcc90c
3 changed files with 7 additions and 2 deletions
  1. 1 1
      contrib/babel/lisp/langs/org-babel-python.el
  2. 3 0
      lisp/ChangeLog
  3. 3 1
      lisp/org-exp.el

+ 1 - 1
contrib/babel/lisp/langs/org-babel-python.el

@@ -30,7 +30,7 @@
 
 ;;; Code:
 (require 'org-babel)
-(require 'python)
+(require (if (featurep 'xemacs) 'python-mode 'python))
 
 (org-babel-add-interpreter "python")
 

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-05-14  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-exp.el (org-export-format-source-code-or-example):
+	XEmacs compatibility.
+
 	* org-latex.el (org-export-latex-tables): Accept comma in
 	align string.
 

+ 3 - 1
lisp/org-exp.el

@@ -2167,7 +2167,9 @@ INDENT was the original indentation of the block."
 	     ((eq backend 'html)
 	      ;; We are exporting to HTML
 	      (when lang
-		(require 'htmlize nil t)
+		(if (featurep 'xemacs)
+		    (require 'htmlize)
+		  (require 'htmlize nil t))
 		(when (not (fboundp 'htmlize-region-for-paste))
 		  ;; we do not have htmlize.el, or an old version of it
 		  (setq lang nil)