diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-07-21 09:46:55 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-07-21 09:46:55 -0700 |
commit | e3429de11533f299ae2abac02085061a49fcc010 (patch) | |
tree | b6aff991698e2a88727372de4bfb2ce338925636 | |
parent | d588be74f22f72f05ad1a0710faca51ea64eb245 (diff) | |
download | org-mode-e3429de11533f299ae2abac02085061a49fcc010.tar.gz |
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
-rw-r--r-- | lisp/ob-tangle.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 9383e1b..be4e53e 100644 --- a/lisp/ob-tangle.el +++ b/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) |