Re: [O] [bug?, ob] finding tables with captions

2015-02-16 Thread Nicolas Goaziou
Hello,

Rasmus  writes:

> A caption seems to prevent Org from finding a table when using inline
> calls.  Consider this example:
>
> #+NAME: tbl0
> #+CAPTION: caption
> | a | b |
> |---+---|
> | 1 | 2 |
>
> src_emacs-lisp[:var val=tbl0[2,1]]{val} =nil= 
>
> #+CAPTION: caption
> #+NAME: tbl1
> | a | b |
> |---+---|
> | 1 | 2 |
>
> src_emacs-lisp[:var val=tbl1[2,1]]{val} =2=
>
> Is that a feature or a bug?  Or me misusing ob?

Babel sometimes assumes NAME is just before the element considered, e.g.
"ob-core.el", l. 1940.

The library would benefit from using the parser consistently, but there
is much work left to do in that area.


Regards,

-- 
Nicolas Goaziou



[O] [bug?, ob] finding tables with captions

2015-02-16 Thread Rasmus
Hi,

A caption seems to prevent Org from finding a table when using inline
calls.  Consider this example:

#+NAME: tbl0
#+CAPTION: caption
| a | b |
|---+---|
| 1 | 2 |

src_emacs-lisp[:var val=tbl0[2,1]]{val} =nil= 

#+CAPTION: caption
#+NAME: tbl1
| a | b |
|---+---|
| 1 | 2 |

src_emacs-lisp[:var val=tbl1[2,1]]{val} =2=

Is that a feature or a bug?  Or me misusing ob?

—Rasmus

-- 
There are known knowns; there are things we know that we know