diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 053f2b8cd..75051e50c 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)