Przeglądaj źródła

babel: erase previous contents of preview buffer

Dan Davison 15 lat temu
rodzic
commit
7decdec3b2
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      contrib/babel/lisp/org-babel.el

+ 1 - 0
contrib/babel/lisp/org-babel.el

@@ -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)))