Browse Source

ob-tangle: inhibit unwanted buffer movement on use of post-tangle-hook

* lisp/ob-tangle.el (org-babel-with-temp-filebuffer): use
  find-file-noselect to avoid excess buffer movement
Eric Schulte 14 years ago
parent
commit
e3429de115
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-tangle.el

+ 1 - 1
lisp/ob-tangle.el

@@ -61,7 +61,7 @@ evaluating BODY."
   (let ((temp-result (make-symbol "temp-result"))
 	(temp-file (make-symbol "temp-file")))
     `(let (,temp-result ,temp-file)
-       (find-file ,file)
+       (find-file-noselect ,file)
        (setf ,temp-file (current-buffer))
        (setf ,temp-result (progn ,@body))
        (kill-buffer ,temp-file)