Rasmus <ras...@gmx.us> writes:

> If anyone can figure out what is wrong on the Org side or what "broke"
> in Emacs-Core it would be great!  "Luckily" it's an all-C commit so I
> don't know how to proceed from here. . .

This really stupid patch allows me to export the document I was unable
to export yesterday with emacs-bzr r115062 (latest or almost latest)
and the latest version Org.

Eric F., would you mind testing it with your slides?

–Rasmus


-- 
C is for Cookie
>From 7dcd18bd9df54edbd9395e09459489c35be02c22 Mon Sep 17 00:00:00 2001
From: Rasmus <ras...@gmx.us>
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

Reply via email to