From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG][PATCH] Marker points into wrong buffer
Date: Tue, 12 Nov 2013 02:44:15 +0100 [thread overview]
Message-ID: <87iovyxukw.fsf@gmx.us> (raw)
In-Reply-To: 87eh6mcx3i.fsf@pank.iue.private
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
Rasmus <rasmus@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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Workaround-for-new-marker-behavior.patch --]
[-- Type: text/x-diff, Size: 1028 bytes --]
From 7dcd18bd9df54edbd9395e09459489c35be02c22 Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@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
next prev parent reply other threads:[~2013-11-12 1:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-11 23:55 [BUG] Marker points into wrong buffer Rasmus
2013-11-12 1:44 ` Rasmus [this message]
2013-11-12 10:41 ` [BUG][PATCH] " Eric S Fraga
2013-11-12 16:57 ` Eric S Fraga
2013-11-12 21:06 ` Achim Gratz
2013-11-12 21:48 ` Bastien
2013-11-13 18:28 ` Achim Gratz
2013-11-12 22:14 ` Rasmus
2013-11-12 19:49 ` [BUG] " Achim Gratz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iovyxukw.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).