emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [bug] Code snippets are not getting numbered


From: Nicolas Goaziou
Subject: Re: [O] [bug] Code snippets are not getting numbered
Date: Tue, 28 Jan 2014 22:11:30 +0100

Hello,

Jambunathan K <address@hidden> writes:

> Code snippets are not getting numbered... Also take a look at
> `org-export-resolve-coderef'.
>
> The below example is from (info "(org) Literal examples")
>
> #+BEGIN_SRC emacs-lisp -n -r
> (save-excursion                  (ref:sc)
>    (goto-char (point-min))       (ref:jump)
> #+END_SRC
>
> In line [[(sc)]] we remember the current position.  [[(jump)][Line (jump)]]
> jumps to point-min.

Thank you for reporting it.

The problem is one week old (dde6af3a6230b37aabfb4f75c2dee89433958375).
When trying to fix something I broke another part.

IIUC, there are two "flags" types in `org-babel-exp-code'. One is
the :flags parameter and the other one are the switches of the source
block. Unfortunately, you can have only one at a time since they are
stored in an alist (the first one shadows the other one).

I think a correct solution would be to rename switches "switches" and
add them to `org-babel-exp-code-template'.

Eric, what do you think?


Regards,

-- 
Nicolas Goaziou



reply via email to

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