From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [error] export fails with "marker points into wrong buffer"; babel problem? Date: Mon, 16 Sep 2013 14:07:42 +0100 Message-ID: <87fvt4hq3l.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLYXL-0006Ir-56 for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 09:08:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLYXE-0006v3-6x for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 09:08:19 -0400 Received: from mail14-co9on0066.outbound.messaging.microsoft.com ([157.56.211.66]:14756 helo=CO9EHSNDR001.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLYXD-0006uf-V9 for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 09:08:12 -0400 Received: from mail25-co9 (localhost [127.0.0.1]) by mail25-co9-R.bigfish.com (Postfix) with ESMTP id A28A542006D for ; Mon, 16 Sep 2013 13:08:09 +0000 (UTC) Received: from CO9EHSMHS014.bigfish.com (unknown [10.236.132.231]) by mail25-co9.bigfish.com (Postfix) with ESMTP id 0314438005D for ; Mon, 16 Sep 2013 13:08:07 +0000 (UTC) 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 Hello, I am going crazy! The attached example (a single beamer slide from a 700+ set of slides) fails on export to Beamer or even LaTeX (and possibly any other target) with error "marker points into wrong buffer". The problem is caused by the evaluation of a call_ babel line. Org is up to date with the latest emacs snapshot. Here is the backtrace: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "Marker points into wrong buffer" #>) goto-char(#>) (progn (goto-char org-babel-current-src-block-location)) (if org-babel-current-src-block-location (progn (goto-char org-babel-current-src-block-location))) (save-excursion (if org-babel-current-src-block-location (progn (goto-char org-babel-current-src-block-location))) (org-babel-read ref)) (let ((out (save-excursion (if org-babel-current-src-block-location (progn (goto-char org-babel-current-src-block-location))) (org-babel-read ref)))) (if (equal out ref) (if (string-match "^\".*\"$" ref) (read ref) (org-babel-ref-resolve ref)) out)) (cons (intern var) (let ((out (save-excursion (if org-babel-current-src-block-location (progn (goto-char org-babel-current-src-block-location))) (org-babel-read ref)))) (if (equal out ref) (if (string-match "^\".*\"$" ref) (read ref) (org-babel-ref-resolve ref)) out))) (let ((var (match-string 1 assignment)) (ref (match-string 2 assignment))) (cons (intern var) (let ((out (save-excursion (if org-babel-current-src-block-location (progn ...)) (org-babel-read ref)))) (if (equal out ref) (if (string-match "^\".*\"$" ref) (read ref) (org-babel-ref-resolve ref)) out)))) (progn (let ((var (match-string 1 assignment)) (ref (match-string 2 assignment))) (cons (intern var) (let ((out (save-excursion (if org-babel-current-src-block-location ...) (org-babel-read ref)))) (if (equal out ref) (if (string-match "^\".*\"$" ref) (read ref) (org-babel-ref-resolve ref)) out))))) (if (string-match org-babel-ref-split-regexp assignment) (progn (let ((var (match-string 1 assignment)) (ref (match-string 2 assignment))) (cons (intern var) (let ((out (save-excursion ... ...))) (if (equal out ref) (if (string-match "^\".*\"$" ref) (read ref) (org-babel-ref-resolve ref)) out)))))) org-babel-ref-parse("results=benzene-chlorobenzene-relative-volatility(T=25)") --8<---------------cut here---------------end--------------->8--- For some reason, emacs is trying to go to a buffer named "slide.org<2>" when no such buffer exists. The buffer is "slide.org"... I will try to back up in org commits as the original file from where the single slide came from worked last week. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.2-git --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename="slide.org" #+OPTIONS: H:2 toc:nil num:nil #+EXPORT_EXCLUDE_TAGS: noexport #+startup: beamer #+PROPERTY: cache yes #+latex_header: \usepackage[british]{babel} * Introduction ** Example: Benzene and Chlorobenzene mixture - Benzene is lighter of the two components. - Antoine coefficients (\scannedtable{4}) are: #+tblname: benzene-chlorobenzene-antoine-coefficients | Species | A | B | C | |---------------+---------+----------+---------| | benzene | 6.89272 | 1203.531 | 219.888 | | chlorobenzene | 7.10690 | 1500.0 | 224 | #+name: benzene-chlorobenzene-relative-volatility #+begin_src octave :exports none :results output :var T=25 :var coeff=benzene-chlorobenzene-antoine-coefficients[2:-1,1:-1] format bank b=1; # row indices c=2; A=1; # column indices B=2; C=3; for i=1:2, p(i) = 10^(coeff(i,A) - coeff(i,B)/(T+coeff(i,C))); endfor alpha = p(b)/p(c); printf("%.2f", alpha); #+end_src - Picking a reasonable temperature, say $T=25\,^\circ C$, and using eq. \ref{eq:distillation-alpha}, gives a relative volatility of call_benzene-chlorobenzene-relative-volatility(T=25). - Now generate values of $y$ for values of $x \in [0,1]$ using eq. \ref{eq:distillation-vapour-composition}. --=-=-=--