[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problem exporting file with code references

From: Nicolas Goaziou
Subject: Re: [O] Problem exporting file with code references
Date: Sun, 28 Aug 2016 11:57:14 +0200


Thibault Marin <address@hidden> writes:

> I am trying to run the last example on the documentation page:
> http://orgmode.org/manual/Literal-examples.html and I am running into a
> problem.  The following is the full org file I am trying to export:
> ---
> #+BEGIN_SRC emacs-lisp -n -r
> (save-excursion                  (ref:sc)
>    (goto-char (point-min)))      (ref:jump)
> In line [[(sc)]] we remember the current position.  [[(jump)][Line
> (jump)]] jumps to point-min.
> ---
> When trying to export (I tried html or latex), I get the following error
> message: 'user-error: Unable to resolve link: "sc"'.
> Trying to investigate, it appears that the `org-babel--normalize-body'
> function (ob-core.el) removes the references "(ref:sc)" and "(ref:jump)"
> from the code block prior to execution.  This happens during the call to
> `org-babel-exp-process-buffer' when `org-export-babel-evaluate' is
> non-nil (in ox.el).  From that point, the source block content does not
> contain the "(ref:sc)" and "(ref:jump)" text.  Consequently, when
> reaching the `org-export-resolve-coderef' function, the link is not
> found in the code and the error is returned.

This is now fixed. Thank you.


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]