emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] BUG org-babel-goto-named-src-block with indented block


From: Eric Schulte
Subject: Re: [O] BUG org-babel-goto-named-src-block with indented block
Date: Fri, 07 Mar 2014 08:28:46 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>> The problem is with your example.  You can not put a header line between
>> a #+name and it's source block.
>>
>
> If that is the case, then the manual should be fixed.  As the manual
> explicitly allows that:  See the last example on here [fn:1].
>

Oh, thanks for pointing this out.

Given the manual example I would like to reverse my previous statement.
I suppose it *is* legal to separate a name and code block by intervening
comment or header lines.  I've just pushed up a fix which allows your
original example to work as written.

Thanks for following up on this!

>
> Regards,
> Andreas
>
>
> Footnotes:
>
> [fn:1] 
> http://orgmode.org/manual/Code-block-specific-header-arguments.html#Code-block-specific-header-arguments
>
>
>
>> Best,
>>
>> Andreas Leha <address@hidden> writes:
>>
>>> Hi all,
>>>
>>> there seems to be a bug, where org-babel-goto-named-src-block does not
>>> find an indented source block.
>>>
>>> Here is an example:
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> * Test org-babel-goto-named-src-block
>>>
>>> Try org-babel-goto-named-src-block (C-c C-v g) with point on the
>>> following line.  (This works for me.)
>>> #+call: block1(20)
>>>
>>>
>>> Try org-babel-goto-named-src-block (C-c C-v g) with point on the
>>> following line.  (This does not work for me.)
>>> #+call: block2(20)
>>>
>>>
>>> ** The first block *without* indentation
>>> #+name: block1
>>> #+header: :var end=10
>>> #+begin_src R
>>>   1:end
>>> #+end_src
>>>
>>>
>>> ** The second block *with* indentation
>>>    #+name: block2
>>>    #+header: :var end=11
>>>    #+begin_src R
>>>      2:end
>>>    #+end_src
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>>
>>> Regards,
>>> Andreas
>>>
>>>
>
>

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



reply via email to

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