summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2011-04-21 17:55:18 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2011-04-21 17:55:18 +0200
commitb7e3d7d90b655153d2a51cab584a5561c18262ec (patch)
tree2073f3a29812287bc68a9e93a3aa0b2c4a0edbed
parent2985816e25f862aca014d980b4eeca8fb14b9466 (diff)
downloadorg-mode-b7e3d7d90b655153d2a51cab584a5561c18262ec.tar.gz
Make exporting the enclosing entry with CLASS/TITLE property work better
* lisp/org-exp.el (org-export): Go to next heading before searching backward, so make this also work if we are on the headline of the entry with the property...
-rw-r--r--lisp/org-exp.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 053f2b8..75051e5 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -995,6 +995,7 @@ Pressing `1' will switch between these two options."
(message "Export subtree: "))))
(when (eq r1 ?\ )
(let ((case-fold-search t))
+ (outline-next-heading)
(if (re-search-backward
"^[ \t]+\\(:latex_class:\\|:export_title:\\)[ \t]+\\S-"
nil t)