jupyter-insert-latex: Temporarily set kill-buffer-hook to nil

This commit is contained in:
Nathaniel Nicandro 2019-03-31 10:37:00 -05:00
parent 6a1afa1623
commit 00fa25a117
No known key found for this signature in database
GPG key ID: C34814B309DD06B8

View file

@ -416,6 +416,8 @@ image."
;; buffer which causes the query function to ask to kill the kernel client
;; when the temp buffers are killed!
(let ((kill-buffer-query-functions nil)
;; This is added to in `org-babel-jupyter-initiate-session-by-key'
(kill-buffer-hook nil)
(org-format-latex-options
`(:foreground
default
@ -430,6 +432,7 @@ image."
'overlays nil 'forbuffer
;; Use the default method for creating image files
org-preview-latex-default-process)
;; Avoid deleting the image overlays due to text property changes
(dolist (o (overlays-in beg end))
(when (eq (overlay-get o 'org-overlay-type)
'org-latex-overlay)