From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [BUG][PATCH] Marker points into wrong buffer Date: Tue, 12 Nov 2013 02:44:15 +0100 Message-ID: <87iovyxukw.fsf@gmx.us> References: <87eh6mcx3i.fsf@pank.iue.private> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg31z-0000Ou-8L for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 20:44:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vg31p-000651-5b for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 20:44:39 -0500 Received: from plane.gmane.org ([80.91.229.3]:54683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg31o-00062j-Sr for emacs-orgmode@gnu.org; Mon, 11 Nov 2013 20:44:29 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vg31m-0001YN-VT for emacs-orgmode@gnu.org; Tue, 12 Nov 2013 02:44:26 +0100 Received: from dynamic-adsl-94-34-191-249.clienti.tiscali.it ([94.34.191.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Nov 2013 02:44:26 +0100 Received: from rasmus by dynamic-adsl-94-34-191-249.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Nov 2013 02:44:26 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Rasmus 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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Workaround-for-new-marker-behavior.patch >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 --=-=-=--