diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2011-04-21 17:55:18 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2011-04-21 17:55:18 +0200 |
commit | b7e3d7d90b655153d2a51cab584a5561c18262ec (patch) | |
tree | 2073f3a29812287bc68a9e93a3aa0b2c4a0edbed | |
parent | 2985816e25f862aca014d980b4eeca8fb14b9466 (diff) | |
download | org-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.el | 1 |
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) |