Re: [O] [PATCH] Source block fontification handling indentation

2014-03-26 Thread Bastien
Hi Michael, Pontus Michael writes: > Source block fontification is achieved by copying source block > contents into temporary buffer under appropriate major mode and > mirroring face text-properties into original buffer. thanks for the change and the detailed explanations. Eric, I'm short of t

Re: [O] [PATCH] Source block fontification handling indentation

2014-03-25 Thread Pontus Michael
Sorry, the code in last source block in my attachment got a little bit messed up. I corrected it in this attachment. On 21 March 2014 12:23, Bastien wrote: > Hi Michael, > > thanks for the patch. > > Pontus Michael writes: > > > Primary reason for this change is to fix the problem which I desc

Re: [O] [PATCH] Source block fontification handling indentation

2014-03-25 Thread Pontus Michael
Source block fontification is achieved by copying source block contents into temporary buffer under appropriate major mode and mirroring face text-properties into original buffer. Problem is that this procedure doesn't account for user option `org-edit-src-content-indentation'. This option adds de

Re: [O] [PATCH] Source block fontification handling indentation

2014-03-21 Thread Bastien
Hi Michael, thanks for the patch. Pontus Michael writes: > Primary reason for this change is to fix the problem which I describe > as > follows: > > This function is not 100% compatible with a org-edit-src facility, > which provides an option to have indentation added to the code inside > the b

[O] [PATCH] Source block fontification handling indentation

2014-02-28 Thread Pontus Michael
I make a change to function which copies contents of source code block to temporary buffer, applies fontification through the means of relevant major mode and transcribes text-properties back to org-buffer so that they are applied on top of code in affected source code block. Primary reason for th