Re: [O] source block breaks when code looks like heading

2017-08-13 Thread Nicolas Goaziou
Hello, Uwe Koloska writes: > Am 08.08.2017 um 09:45 schrieb Nicolas Goaziou: >> You need to prepend a comma before the asterisks. See (info "(org)Literal >> examples"). > > This is not documented directly but only in a footnote describing how > `org-edit-special' handles lines starting with spec

Re: [O] source block breaks when code looks like heading

2017-08-13 Thread Uwe Koloska
Am 08.08.2017 um 09:45 schrieb Nicolas Goaziou: > You need to prepend a comma before the asterisks. See (info "(org)Literal > examples"). This is not documented directly but only in a footnote describing how `org-edit-special' handles lines starting with special characters. What type of blocks ar

Re: [O] source block breaks when code looks like heading

2017-08-08 Thread bruce robertson
I see what you mean now. I haven't tried evaluating the code in the block yet. I assume it removes the commas automatically. On Tue, Aug 8, 2017 at 4:03 PM Nicolas Goaziou wrote: > Hello, > > bruce robertson writes: > > > How would the source for the math then work? > > I'm not sure to understa

Re: [O] source block breaks when code looks like heading

2017-08-08 Thread Nicolas Goaziou
Hello, bruce robertson writes: > How would the source for the math then work? I'm not sure to understand. Have you tried the suggested solution? Regards, -- Nicolas Goaziou0x80A93738

Re: [O] source block breaks when code looks like heading

2017-08-08 Thread Adam Porter
bruce robertson writes: > How would the source for the math then work? If you edit the code-block with C-c ', the escape characters will be handled automatically.

Re: [O] source block breaks when code looks like heading

2017-08-08 Thread bruce robertson
How would the source for the math then work? On Tue, Aug 8, 2017 at 12:45 AM Nicolas Goaziou wrote: > Hello, > > bruce robertson writes: > > > multi-line comments or expressions appearing to be headings break block. > > > > * top > > > > #+begin_src php > > /* > > *do not prepend a space to 'do

Re: [O] source block breaks when code looks like heading

2017-08-08 Thread Nicolas Goaziou
Hello, bruce robertson writes: > multi-line comments or expressions appearing to be headings break block. > > * top > > #+begin_src php > /* > *do not prepend a space to 'do' > */ > b = 2 > *3; // do not prepend a space to '3' > #+end_src You need to prepend a comma before the asterisks. See (i

[O] source block breaks when code looks like heading

2017-08-07 Thread bruce robertson
multi-line comments or expressions appearing to be headings break block. * top #+begin_src php /* *do not prepend a space to 'do' */ b = 2 *3; // do not prepend a space to '3' #+end_src GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2016-09-20 Or