emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: [error] export fails with "marker points into wrong buffer"; babel problem?
Date: Mon, 16 Sep 2013 14:07:42 +0100	[thread overview]
Message-ID: <87fvt4hq3l.fsf@pinto.chemeng.ucl.ac.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 2784 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: slide.org --]
[-- Type: text/x-org, Size: 1317 bytes --]

#+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	other threads:[~2013-09-16 13:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-16 13:07 Eric S Fraga [this message]
2013-09-16 13:41 ` [error] export fails with "marker points into wrong buffer"; babel problem? Eric S Fraga

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=87fvt4hq3l.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --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).