瀏覽代碼

Fix XEmacs compatibility

Carsten Dominik 15 年之前
父節點
當前提交
436302c1a2
共有 3 個文件被更改,包括 7 次插入5 次删除
  1. 5 4
      lisp/org-beamer.el
  2. 1 0
      lisp/org-freemind.el
  3. 1 1
      lisp/org.el

+ 5 - 4
lisp/org-beamer.el

@@ -353,10 +353,11 @@ this function dynamically."
 (define-minor-mode org-beamer-mode
   "Special support for editing Org-mode files made to export to beamer."
   nil " Bm" nil)
-(font-lock-add-keywords
- 'org-mode
- '((":\\(B_[a-z]+\\|BMCOL\\):" 1 'org-beamer-tag prepend))
- 'prepent)
+(when (fboundp 'font-lock-add-keywords)
+  (font-lock-add-keywords
+   'org-mode
+   '((":\\(B_[a-z]+\\|BMCOL\\):" 1 'org-beamer-tag prepend))
+   'prepent))
 
 (defun org-beamer-place-default-actions-for-lists ()
   "Find default overlay specifications in items, and move them.

+ 1 - 0
lisp/org-freemind.el

@@ -81,6 +81,7 @@
 
 (require 'xml)
 (require 'org)
+(require 'rx)
 (require 'org-exp)
 (eval-when-compile (require 'cl))
 

+ 1 - 1
lisp/org.el

@@ -16297,7 +16297,7 @@ This command does many different things, depending on context:
 	   (fboundp org-finish-function))
       (funcall org-finish-function))
      ((run-hook-with-args-until-success 'org-ctrl-c-ctrl-c-hook))
-     ((or (looking-at (org-re org-property-start-re))
+     ((or (looking-at org-property-start-re)
 	  (org-at-property-p))
       (call-interactively 'org-property-action))
      ((org-on-target-p) (call-interactively 'org-update-radio-target-regexp))