Fixed bug in `org-export-region-as-latex'.

Always ignore the value of the skip parameter when exporting a region.
This commit is contained in:
Bastien Guerry 2008-02-08 15:09:11 +00:00
parent d409a2936b
commit 9a04b8f2dd
1 changed files with 3 additions and 2 deletions

View File

@ -391,9 +391,10 @@ without even the \begin{document} and \end{document} commands."
(find-file-noselect filename))) (find-file-noselect filename)))
(odd org-odd-levels-only) (odd org-odd-levels-only)
(header (org-export-latex-make-header title opt-plist)) (header (org-export-latex-make-header title opt-plist))
(skip (if subtree-p nil (skip (cond (subtree-p nil)
(region-p t)
;; never skip first lines when exporting a subtree ;; never skip first lines when exporting a subtree
(plist-get opt-plist :skip-before-1st-heading))) (t (plist-get opt-plist :skip-before-1st-heading))))
(text (plist-get opt-plist :text)) (text (plist-get opt-plist :text))
(first-lines (if skip "" (org-export-latex-first-lines))) (first-lines (if skip "" (org-export-latex-first-lines)))
(coding-system (and (boundp 'buffer-file-coding-system) (coding-system (and (boundp 'buffer-file-coding-system)