[O] words starting with call_ confuse C-c C-c and export

2013-12-02 Thread Daniel Clemente
Hi, with org-mode from today on Emacs 23.4.1 and with this 2-line file: - [ ] call_me - [ ] try funcall_lambda (maybe) 1. Go to the „me“ and press C-c C-c. You get „C-c C-c can do nothing useful at this location“. I expected to switch the checkbox. 2. Go to the „maybe“ and press C-c C-c. I

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-03 Thread Nicolas Goaziou
Hello, Daniel Clemente writes: > Hi, with org-mode from today on Emacs 23.4.1 and with this 2-line file: > > - [ ] call_me > - [ ] try funcall_lambda (maybe) > > > 1. Go to the „me“ and press C-c C-c. You get „C-c C-c can do nothing > useful at this location“. I expected to switch the checkbox

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-06 Thread Eric Schulte
> > We may tweak `org-babel-inline-lob-one-liner-regexp' in order to make it > harder to trigger it unwillingly. > The trade-off here is between raising an error when e.g., a like matching the call line syntax has a problem or failing silently. The former is preferable in the case where you inte

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-06 Thread Nicolas Goaziou
Hello, Eric Schulte writes: >> We may tweak `org-babel-inline-lob-one-liner-regexp' in order to make it >> harder to trigger it unwillingly. >> > > The trade-off here is between raising an error when e.g., a like > matching the call line syntax has a problem or failing silently. The > former i

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-06 Thread Eric Schulte
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >>> We may tweak `org-babel-inline-lob-one-liner-regexp' in order to make it >>> harder to trigger it unwillingly. >>> >> >> The trade-off here is between raising an error when e.g., a like >> matching the call line syntax has a proble

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-14 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > Nicolas Goaziou writes: >> Just to be clear, I thought about making parens mandatory in inline >> Babel call syntax. Underscore is overloaded already: underline, >> subscript... >> > > I'm open to this change. In fact, they are already mandatory. The problem is d

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-15 Thread Eric Schulte
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> Nicolas Goaziou writes: > >>> Just to be clear, I thought about making parens mandatory in inline >>> Babel call syntax. Underscore is overloaded already: underline, >>> subscript... >>> >> >> I'm open to this change. > > In fact, t

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-15 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > Nicolas Goaziou writes: >> In fact, they are already mandatory. The problem is different. Current >> regexp is: >> >> >> "\\([^\n]*?\\)call_\\([^()\n]+?\\)\\(\\[\\(.*?\\)\\]\\|\\(\\)\\)(\\([^\n]*?\\))\\(\\[\\(.*?\\)\\]\\)?" >> >> In particular, name is \\([^()\n

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-16 Thread Eric Schulte
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> Nicolas Goaziou writes: >>> In fact, they are already mandatory. The problem is different. Current >>> regexp is: >>> >>> >>> "\\([^\n]*?\\)call_\\([^()\n]+?\\)\\(\\[\\(.*?\\)\\]\\|\\(\\)\\)(\\([^\n]*?\\))\\(\\[\\(.*?\\)\\]\\)?"

Re: [O] words starting with call_ confuse C-c C-c and export

2013-12-16 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > Nicolas Goaziou writes: >> It would solve the current problem, but there are still many problematic >> characters allowed (e.g., commas, curly brackets). I think there's no >> point in allowing "call_{i=1}()" as a valid inline Babel call. >> >> Furthermore, I don'

Re: [O] words starting with call_ confuse C-c C-c and export

2014-03-06 Thread Eric Schulte
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> Nicolas Goaziou writes: > >>> It would solve the current problem, but there are still many problematic >>> characters allowed (e.g., commas, curly brackets). I think there's no >>> point in allowing "call_{i=1}()" as a valid inline

Re: [O] words starting with call_ confuse C-c C-c and export

2014-03-10 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > Nicolas Goaziou writes: >> We're talking about function names, not free-form text, so limitations >> are understandable. For example, macro names only allow alphanumeric >> characters or hyphens and have to start with an alphabetic character. > > Having considered

Re: [O] words starting with call_ confuse C-c C-c and export

2014-03-10 Thread Eric Schulte
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> Nicolas Goaziou writes: > >>> We're talking about function names, not free-form text, so limitations >>> are understandable. For example, macro names only allow alphanumeric >>> characters or hyphens and have to start with an alphab

Re: [O] words starting with call_ confuse C-c C-c and export

2014-03-11 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > Is "/" allowed in macro names? No. Macro names use the following regexp: [a-zA-Z][-a-zA-Z0-9_]* > I think the biggest benefit here is > unification between macro and function names. Is there a macro name > regexp which could be used directly (to ensure that th

Re: [O] words starting with call_ confuse C-c C-c and export

2014-03-11 Thread Eric Schulte
>> >> Does this sound about right? > > Note there is no limitation on the contents of NAME keywords. Unless the > same limitation propagates to those (but should it?), Babel calls will > be ignored if forbidden characters are used. > I think it is more important that code block names resemble data

Re: [O] words starting with call_ confuse C-c C-c and export

2014-03-11 Thread Nicolas Goaziou
Eric Schulte writes: >> Note there is no limitation on the contents of NAME keywords. Unless the >> same limitation propagates to those (but should it?), Babel calls will >> be ignored if forbidden characters are used. >> > > I think it is more important that code block names resemble data names