summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gratz <Stromeko@Stromeko.DE>2013-01-12 11:06:20 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-01-12 17:24:18 (GMT)
commit409ee8a2f27e3fe35b5bf6da6ded22c3da00e1d3 (patch)
tree99155a1b4c59d3ff0ace21749d9442218dcbb32c
parent4b1fcd04e8e36e0325337d716dce4602c8e62001 (diff)
downloadorg-mode-409ee8a2f27e3fe35b5bf6da6ded22c3da00e1d3.zip
org-mode-409ee8a2f27e3fe35b5bf6da6ded22c3da00e1d3.tar.gz
Compatibility: XEmacs does not have user-emacs-directory, use user-init-directory instead
* lisp/org-compat.el (user-emacs-directory): If not bound, define as an alias to `user-init-directory┬┤ so that XEmacs continues to be happy with Org.
-rw-r--r--lisp/org-compat.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index 687b81f..2d200b7 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -113,6 +113,11 @@ any other entries, and any resulting duplicates will be removed entirely."
;;;; Emacs/XEmacs compatibility
+(eval-and-compile
+ (when (and (not (boundp 'user-emacs-directory))
+ (boundp 'user-init-directory))
+ (defvaralias 'user-emacs-directory 'user-init-directory)))
+
;; Keys
(defconst org-xemacs-key-equivalents
'(([mouse-1] . [button1])