summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-06-12 16:16:28 -0700
committerEric Schulte <schulte.eric@gmail.com>2010-06-17 18:15:32 -0700
commitea8565e2ed46b925a049a231eed983dd6e2c2971 (patch)
treee214038f62bece538745c68f6d46b47588bd6d30
parente0b71bf8e2f99862bcfffe8e8c41c6c2d5015159 (diff)
downloadorg-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.el2
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