Skip to content

Commit

Permalink
make exports work with emacs 24.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nakal committed Jan 28, 2015
1 parent ac0b71e commit 646d9e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ftplugin/orgmode/plugins/Export.py
Expand Up @@ -65,7 +65,7 @@ def _export(cls, format_):
u'-nw',
u'--batch',
u'--visit=%s' % vim.eval(u'expand("%:p")'),
u'--funcall=org-export-as-%s' % format_
u'--funcall=%s' % format_
]
# source init script as well
init_script = cls._get_init_script()
Expand All @@ -83,7 +83,7 @@ def _export(cls, format_):
@classmethod
def topdf(cls):
u"""Export the current buffer as pdf using emacs orgmode."""
ret = cls._export(u'pdf')
ret = cls._export(u'org-latex-export-to-pdf')
if ret != 0:
echoe(u'PDF export failed.')
else:
Expand All @@ -92,7 +92,7 @@ def topdf(cls):
@classmethod
def tohtml(cls):
u"""Export the current buffer as html using emacs orgmode."""
ret = cls._export(u'html')
ret = cls._export(u'org-html-export-to-html')
if ret != 0:
echoe(u'HTML export failed.')
else:
Expand All @@ -101,7 +101,7 @@ def tohtml(cls):
@classmethod
def tolatex(cls):
u"""Export the current buffer as latex using emacs orgmode."""
ret = cls._export(u'latex')
ret = cls._export(u'org-latex-export-to-latex')
if ret != 0:
echoe(u'latex export failed.')
else:
Expand Down

0 comments on commit 646d9e1

Please sign in to comment.