Browse Source

Export: Add EXPORT_FILE_NAME to the enclosing tree properties

* lisp/org-exp.el (org-export): Add EXPORT_FILE_NAME to the enclosing
tree properties
Carsten Dominik 14 năm trước cách đây
mục cha
commit
e7217a74e9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lisp/org-exp.el

+ 2 - 2
lisp/org-exp.el

@@ -998,7 +998,7 @@ Pressing `1' will switch between these two options."
 		(end (save-excursion (while (org-up-heading-safe)) (point))))
 	    (outline-next-heading)
 	    (if (re-search-backward
-		 "^[ \t]+\\(:latex_class:\\|:export_title:\\)[ \t]+\\S-"
+		 "^[ \t]+\\(:latex_class:\\|:export_title:\\|:export_file_name:\\)[ \t]+\\S-"
 		 end t)
 		(progn
 		  (org-back-to-heading t)
@@ -1006,7 +1006,7 @@ Pressing `1' will switch between these two options."
 		  (setq bpos (point))
 		  (message "Select command (for subtree): ")
 		  (setq r1 (read-char-exclusive)))
-	      (error "No enclosing node with LaTeX_CLASS or EXPORT_FILE_NAME")
+	      (error "No enclosing node with LaTeX_CLASS or EXPORT_TITLE or EXPORT_FILE_NAME")
 	      )))))
     (redisplay)
     (and bpos (goto-char bpos))