From 6b9b2d9750cf7070fd31cd5220604ae113fe20f1 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 5 Nov 2018 15:28:11 -0500 Subject: [PATCH] Fix org-src-export-to-pdf function --- .emacs.d/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 965d1e9..170ab3a 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -195,7 +195,8 @@ (pop kill-ring)) ; remove most recent element of kill ring (defun org-src-export-to-pdf () (interactive) - (org-src-in-org-buffer (org-latex-export-to-pdf-no-kr))) + (with-current-buffer (org-src--source-buffer) + (org-latex-export-to-pdf-no-kr))) (setq org-confirm-babel-evaluate nil) (org-babel-do-load-languages 'org-babel-load-languages