diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-06-12 16:16:28 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-06-17 18:15:32 -0700 |
commit | ea8565e2ed46b925a049a231eed983dd6e2c2971 (patch) | |
tree | e214038f62bece538745c68f6d46b47588bd6d30 | |
parent | e0b71bf8e2f99862bcfffe8e8c41c6c2d5015159 (diff) | |
download | org-mode-ea8565e2ed46b925a049a231eed983dd6e2c2971.tar.gz |
babel: replaced `save-excursion' with `with-current-buffer'
* lisp/babel/ob.el (org-babel-expand-noweb-references):
`save-excursion' is not longer defeated by `set-buffer'
-rw-r--r-- | lisp/babel/ob.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/babel/ob.el b/lisp/babel/ob.el index 242112c..8571c61 100644 --- a/lisp/babel/ob.el +++ b/lisp/babel/ob.el @@ -1286,7 +1286,7 @@ block but are passed literally to the \"example-block\"." (nb-add (buffer-substring index (point))) (goto-char (match-end 0)) (setq index (point)) - (nb-add (save-excursion + (nb-add (save-current-buffer (set-buffer parent-buffer) (mapconcat ;; interpose `prefix' between every line #'identity |