Browse Source

org-odt.el: Provide for non-availability of `org-version'

* lisp/org-odt.el (org-odt-update-meta-file): Check for
`org-version' is bound before accessing it.
Jambunathan K 9 years ago
parent
commit
4908ea99ed
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/org-odt.el

+ 3 - 1
lisp/org-odt.el

@@ -2383,7 +2383,9 @@ visually."
        (org-odt-format-tags '("\n<meta:generator>" . "</meta:generator>")
 			    (when org-export-creator-info
 			      (format "Org-%s/Emacs-%s"
-				      org-version emacs-version)))
+				      (if (boundp 'org-version) org-version
+					"Unknown")
+				      emacs-version)))
        (org-odt-format-tags '("\n<meta:keyword>" . "</meta:keyword>") keywords)
        (org-odt-format-tags '("\n<dc:subject>" . "</dc:subject>") description)
        (org-odt-format-tags '("\n<dc:title>" . "</dc:title>") title)