Re: [O] Args out of range: #buffer test.org, 0, 1

2015-01-14 Thread Sebastien Vauban
Nicolas Richard wrote: Sebastien Vauban writes: This still leaves me with one question: how do we reproduce the problem? What's the trigger for it? Mostly luck. i.e. you need to have called a function that callled string-match on a string, with a regexp containing (at least) 4 grouping

[O] Args out of range: #buffer test.org, 0, 1

2015-01-13 Thread Sebastien Vauban
Hello, I sometimes (or often?) have the above error when pressing `C-c C-v C-d' onto some region (to put it in a code block). Org is supposed to ask me which language it is for, and then wrap my selection with the right #+begin/end_src markers. Instead, I get the args out of range error. I

Re: [O] Args out of range: #buffer test.org, 0, 1

2015-01-13 Thread Nicolas Richard
Hello, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: I tried to edebug the function `org-babel-demarcate-block' and the error arises quite at the beginning: on the `match-string 0', on the second line of the `let*'. The error means we tried to access portions

Re: [O] Args out of range: #buffer test.org, 0, 1

2015-01-13 Thread Nicolas Goaziou
Hello, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: I sometimes (or often?) have the above error when pressing `C-c C-v C-d' onto some region (to put it in a code block). Org is supposed to ask me which language it is for, and then wrap my selection with the

Re: [O] Args out of range: #buffer test.org, 0, 1

2015-01-13 Thread Sebastien Vauban
Hello both Nicolas, Nicolas Richard wrote: Sebastien Vauban writes: I tried to edebug the function `org-babel-demarcate-block' and the error arises quite at the beginning: on the `match-string 0', on the second line of the `let*'. The error means we tried to access portions from 0 to 1 in a

Re: [O] Args out of range: #buffer test.org, 0, 1

2015-01-13 Thread Nicolas Richard
Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: This still leaves me with one question: how do we reproduce the problem? What's the trigger for it? Mostly luck. i.e. you need to have called a function that callled string-match on a string, with a regexp containing