From 3636783ca440c1f4aaa5e2db7bc431f0223e1592 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 29 Mar 2014 14:30:07 +0100 Subject: [PATCH] ox-publish: Fix (invalid-read-syntax "#") error * lisp/ox-publish.el (org-publish-find-title): Fix (invalid-read-syntax "#"). Since 8e1386cead0e4296f7bb063d07d64dd95ec0b231, `org-element-interpret-data' no longer trims text properties attached to strings. We need to remove them before writing the title into the cache, as text properties are not readable. --- lisp/ox-publish.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 55cb6466e..b38fca970 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -808,7 +808,8 @@ Default for SITEMAP-FILENAME is 'sitemap.org'." (org-mode) (let ((title (let ((property (plist-get (org-export-get-environment) :title))) - (if property (org-element-interpret-data property) + (if property + (org-no-properties (org-element-interpret-data property)) (file-name-nondirectory (file-name-sans-extension file)))))) (unless visiting (kill-buffer buffer)) (org-publish-cache-set-file-property file :title title)