mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
Amend Bastiens fix in 3bc997fe8f
This fix did create a new problem with exporting selected subtrees. I hope it works now.
This commit is contained in:
parent
d892aa9642
commit
317ea8bf9d
@ -1,5 +1,8 @@
|
||||
2009-09-10 Carsten Dominik <carsten.dominik@gmail.com>
|
||||
|
||||
* org-latex.el (org-export-latex-first-lines): Fix problem with
|
||||
LaTeX export of first line and selected subtree.
|
||||
|
||||
* org.el (org-shifttab): Interpret arg differently when using only
|
||||
odd levels.
|
||||
|
||||
|
@ -1003,11 +1003,10 @@ If BEG is non-nil, it is the beginning of the region.
|
||||
If END is non-nil, it is the end of the region."
|
||||
(save-excursion
|
||||
(goto-char (or beg (point-min)))
|
||||
(let* ((pt (point)))
|
||||
(or end
|
||||
(and (re-search-forward "^\\*+ " end t)
|
||||
(setq end (match-beginning 0)))
|
||||
(setq end (point-max)))
|
||||
(let* ((pt (point))
|
||||
(end (if (re-search-forward "^\\*+ " end t)
|
||||
(goto-char (match-beginning 0))
|
||||
(goto-char (or end (point-max))))))
|
||||
(prog1
|
||||
(org-export-latex-content
|
||||
(org-export-preprocess-string
|
||||
|
Loading…
Reference in New Issue
Block a user