From f4715f1652bb0ce804d8faa8c1f793ce76293faa Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 19 Jan 2014 16:37:25 +0100 Subject: [PATCH] ox.el (org-export--get-subtree-options): Fix bug * ox.el (org-export--get-subtree-options): When using the headline as a title for a subtree export, only take the true heading, no TODO keyword, no priority cookie, no tag. Thanks to Robert Klein for reporting this. --- lisp/ox.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index 2d1ed1a8d..9b778745f 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -1613,10 +1613,11 @@ for export. Return options as a plist." ;; Make sure point is at a heading. (if (org-at-heading-p) (org-up-heading-safe) (org-back-to-heading t)) ;; Take care of EXPORT_TITLE. If it isn't defined, use headline's - ;; title as its fallback value. + ;; title (with no todo keyword, priority cookie or tag) as its + ;; fallback value. (when (setq prop (or (org-entry-get (point) "EXPORT_TITLE") - (progn (looking-at org-todo-line-regexp) - (org-match-string-no-properties 3)))) + (progn (looking-at org-complex-heading-regexp) + (org-match-string-no-properties 4)))) (setq plist (plist-put plist :title -- 2.11.4.GIT