Browse Source

org-e-odt.el: Adjust search paths for schema and styles files

Jambunathan K 13 năm trước cách đây
mục cha
commit
ac5d8c92a5
1 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 3 6
      contrib/lisp/org-e-odt.el

+ 3 - 6
contrib/lisp/org-e-odt.el

@@ -1411,7 +1411,7 @@ Use this to infer values of `org-e-odt-styles-dir' and
 `org-e-odt-schema-dir'.")
 `org-e-odt-schema-dir'.")
 
 
 (defvar org-e-odt-data-dir
 (defvar org-e-odt-data-dir
-  (expand-file-name "../etc/" org-e-odt-lib-dir)
+  (expand-file-name "../../etc/" org-e-odt-lib-dir)
   "Data directory for ODT exporter.
   "Data directory for ODT exporter.
 Use this to infer values of `org-e-odt-styles-dir' and
 Use this to infer values of `org-e-odt-styles-dir' and
 `org-e-odt-schema-dir'.")
 `org-e-odt-schema-dir'.")
@@ -1429,16 +1429,13 @@ Use this to infer values of `org-e-odt-styles-dir' and
 	(expand-file-name "./schema/" org-e-odt-data-dir)) ; bail out
 	(expand-file-name "./schema/" org-e-odt-data-dir)) ; bail out
    (eval-when-compile
    (eval-when-compile
      (and (boundp 'org-e-odt-data-dir) org-e-odt-data-dir ; see make install
      (and (boundp 'org-e-odt-data-dir) org-e-odt-data-dir ; see make install
-	  (expand-file-name "./schema/" org-e-odt-data-dir)))
-   (expand-file-name "../contrib/odt/etc/schema/" org-e-odt-lib-dir) ; git
-   )
+	  (expand-file-name "./schema/" org-e-odt-data-dir))))
   "List of directories to search for OpenDocument schema files.
   "List of directories to search for OpenDocument schema files.
 Use this list to set the default value of
 Use this list to set the default value of
 `org-e-odt-schema-dir'.  The entries in this list are
 `org-e-odt-schema-dir'.  The entries in this list are
 populated heuristically based on the values of `org-e-odt-lib-dir'
 populated heuristically based on the values of `org-e-odt-lib-dir'
 and `org-e-odt-data-dir'.")
 and `org-e-odt-data-dir'.")
 
 
-
 (defconst org-e-odt-styles-dir-list
 (defconst org-e-odt-styles-dir-list
   (list
   (list
    (and org-e-odt-data-dir
    (and org-e-odt-data-dir
@@ -1446,7 +1443,7 @@ and `org-e-odt-data-dir'.")
    (eval-when-compile
    (eval-when-compile
      (and (boundp 'org-e-odt-data-dir) org-e-odt-data-dir ; see make install
      (and (boundp 'org-e-odt-data-dir) org-e-odt-data-dir ; see make install
 	  (expand-file-name "./styles/" org-e-odt-data-dir)))
 	  (expand-file-name "./styles/" org-e-odt-data-dir)))
-   (expand-file-name "../etc/styles/" org-e-odt-lib-dir) ; git
+   (expand-file-name "../../etc/styles/" org-e-odt-lib-dir) ; git
    (expand-file-name "./etc/styles/" org-e-odt-lib-dir)  ; elpa
    (expand-file-name "./etc/styles/" org-e-odt-lib-dir)  ; elpa
    (expand-file-name "./org/" data-directory)	       ; system
    (expand-file-name "./org/" data-directory)	       ; system
    )
    )