mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-13 16:38:24 +00:00
babel: erase previous contents of preview buffer
This commit is contained in:
parent
8872454566
commit
7decdec3b2
@ -281,6 +281,7 @@ arguments, and pop open the results in a preview buffer."
|
||||
(expanded (funcall cmd body params))
|
||||
(buf (get-buffer-create "*Org-Babel Code Body Preview*")))
|
||||
(with-current-buffer buf
|
||||
(erase-buffer)
|
||||
(insert expanded)
|
||||
(funcall (intern (concat lang "-mode"))))
|
||||
(pop-to-buffer buf)))
|
||||
|
Loading…
Reference in New Issue
Block a user