From 7dcd18bd9df54edbd9395e09459489c35be02c22 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Tue, 12 Nov 2013 02:27:51 +0100 Subject: [PATCH] Workaround for new marker behavior * ob-ref.el (org-babel-ref-parse): Fix for Emacs (core) rev. 114069. --- lisp/ob-ref.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el index 5a3c8ba..0ccf753 100644 --- a/lisp/ob-ref.el +++ b/lisp/ob-ref.el @@ -85,7 +85,10 @@ the variable." (cons (intern var) (let ((out (save-excursion (when org-babel-current-src-block-location - (goto-char org-babel-current-src-block-location)) + (if (version< "24.3.50.1" emacs-version) + (goto-char org-babel-current-src-block-location) + (switch-to-buffer (marker-buffer org-babel-current-src-block-location)) + (goto-char (marker-position org-babel-current-src-block-location)))) (org-babel-read ref)))) (if (equal out ref) (if (string-match "^\".*\"$" ref) -- 1.8.4.2