diff --git a/NEWS b/NEWS
index ee88d7af1..21713e170 100644
--- a/NEWS
+++ b/NEWS
@@ -149,6 +149,10 @@ New in spot 1.2.5a (not yet released)
state labels.
- the acceptance specification in the HOA format output have been
adjusted to match recent changes in the format specifications.
+ - the build rules for documentation have been made compatible with
+ version 8.0 of Org-mode. (This was only a problem if you build
+ from the git repository, or if you want to edit the
+ documentation.)
New in spot 1.2.5 (2014-08-21)
diff --git a/doc/org/init.el.in b/doc/org/init.el.in
index a0bb373e4..5968b8d2b 100644
--- a/doc/org/init.el.in
+++ b/doc/org/init.el.in
@@ -1,6 +1,7 @@
;; htmlize is not always in the load-path. On Debian it can be found here.
(setq load-path (cons "/usr/share/emacs/site-lisp/emacs-goodies-el" load-path))
-(require 'org-publish)
+(or (require 'org-publish nil t) ; Org 7
+ (require 'ox-publish)) ; Org 8
(require 'org-install)
(print (concat "Org " (org-version)))
@@ -29,12 +30,14 @@
")
(setq org-publish-project-alist
- '(("spot-html"
+ `(("spot-html"
:base-directory "@abs_top_srcdir@/doc/org/"
:base-extension "org"
:publishing-directory "@abs_top_srcdir@/doc/userdoc/"
:recursive t
- :publishing-function org-publish-org-to-html
+ :publishing-function
+ ,(if (require 'org-publish nil t) 'org-publish-org-to-html ; Org 7
+ 'org-html-publish-to-html) ; Org 8
:style "\n\n"
:auto-preamble t)
("spot-static"