瀏覽代碼

Require htmlfontify.el only if emacs-version is greater than 23.2.

* org-odt.el (require): Require htmlfontify.el only if
emacs-version is greater than 23.2.

Thanks to Martyn Jago for reporting this.
Bastien Guerry 13 年之前
父節點
當前提交
6a4343a461
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/org-odt.el

+ 3 - 1
lisp/org-odt.el

@@ -28,7 +28,9 @@
 ;;; Code:
 ;;; Code:
 (eval-when-compile
 (eval-when-compile
   (require 'cl)
   (require 'cl)
-  (require 'htmlfontify))
+  ;; htmlfontify.el was introduce in Emacs 23.2
+  (when (>= (string-to-number emacs-version) 23.2)
+    (require 'htmlfontify)))
 (require 'org-lparse)
 (require 'org-lparse)
 
 
 (defgroup org-export-odt nil
 (defgroup org-export-odt nil