org-latex.el: Bugfix: run export commands from the right buffer.
This commit is contained in:
parent
b93da58e1f
commit
b9d5e7e85e
|
@ -1043,6 +1043,8 @@ when PUB-DIR is set, use this as the publishing directory."
|
|||
(with-current-buffer outbuf (erase-buffer))
|
||||
(message (concat "Processing LaTeX file " file "..."))
|
||||
(setq output-dir (file-name-directory file))
|
||||
(with-current-buffer lbuf
|
||||
(save-excursion
|
||||
(if (and cmds (symbolp cmds))
|
||||
(funcall cmds (shell-quote-argument file))
|
||||
(while cmds
|
||||
|
@ -1062,7 +1064,7 @@ when PUB-DIR is set, use this as the publishing directory."
|
|||
(save-match-data
|
||||
(shell-quote-argument output-dir))
|
||||
t t cmd)))
|
||||
(shell-command cmd outbuf)))
|
||||
(shell-command cmd outbuf)))))
|
||||
(message (concat "Processing LaTeX file " file "...done"))
|
||||
(setq errors (org-export-latex-get-error outbuf))
|
||||
(if (not (file-exists-p pdffile))
|
||||
|
|
Loading…
Reference in New Issue