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: Eric Schulte
Subject: Re: [O] [bug] Code snippets are not getting numbered
Date: Tue, 28 Jan 2014 14:24:05 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> 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?
>

That sounds reasonable to me.

>
>
> Regards,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



reply via email to

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