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" #<marker 
at 772 in slide.org<2>>)
  goto-char(#<marker at 772 in slide.org<2>>)
  (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
#+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}.

Reply via email to