Преглед изворни кода

ob-sql: insert into a temporary buffer

* lisp/ob-sql.el (org-babel-execute:sql): Insert into a temporary
  buffer.
Eric Schulte пре 13 година
родитељ
комит
92a01caa6d
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      lisp/ob-sql.el

+ 2 - 1
lisp/ob-sql.el

@@ -89,7 +89,8 @@ This function is called by `org-babel-execute-src-block'."
 	    (member "html" result-params)
 	    (member "code" result-params)
 	    (equal (point-min) (point-max)))
-	(progn (insert-file-contents-literally out-file) (buffer-string))
+	(with-temp-buffer
+	  (progn (insert-file-contents-literally out-file) (buffer-string)))
       (with-temp-buffer
 	;; need to figure out what the delimiter is for the header row
 	(with-temp-buffer