[Orgmode] Re: Org now fontifies code blocks

2010-10-28 Thread Dan Davison
Thomas S. Dye t...@tsdye.com writes: On Sep 9, 2010, at 12:35 PM, Dan Davison wrote: Thomas S. Dye t...@tsdye.com writes: Hi Dan, Glad to know that Darlan's slowdown is fixed. No change here that I can tell. Now that I've had org-src-fontify- natively set to t for a while, I can see

Re: [Orgmode] Re: Org now fontifies code blocks

2010-10-28 Thread Jules Bean
Hi Tom, I've used fontification in Org code blocks constantly for a couple of months now, and I do not agree that there are any editing or unfolding delays which should deter typical Org users from using fontified src blocks. In typical usage I do not experience any delays whatsoever (my

[Orgmode] Re: Org now fontifies code blocks

2010-10-28 Thread Jambunathan K
Jules Bean ju...@jellybean.co.uk writes: Hi Tom, I've used fontification in Org code blocks constantly for a couple of months now, and I do not agree that there are any editing or unfolding delays which should deter typical Org users from using fontified src blocks. In typical usage I do

[Orgmode] Re: Org now fontifies code blocks

2010-10-28 Thread Dan Davison
Jambunathan K kjambunat...@gmail.com writes: Jules Bean ju...@jellybean.co.uk writes: Hi Tom, I've used fontification in Org code blocks constantly for a couple of months now, and I do not agree that there are any editing or unfolding delays which should deter typical Org users from

[Orgmode] Re: Org now fontifies code blocks

2010-10-28 Thread Thomas S. Dye
On Oct 28, 2010, at 1:10 AM, Dan Davison wrote: Thomas S. Dye t...@tsdye.com writes: On Sep 9, 2010, at 12:35 PM, Dan Davison wrote: Thomas S. Dye t...@tsdye.com writes: Hi Dan, Glad to know that Darlan's slowdown is fixed. No change here that I can tell. Now that I've had

[Orgmode] Re: Org now fontifies code blocks

2010-09-09 Thread Darlan Cavalcante Moreira
Thank you Dan, It is perfect now. No perceivable slowdown At Wed, 08 Sep 2010 13:41:51 -0400, Dan Davison wrote: Darlan Cavalcante Moreira darc...@gmail.com writes: Maybe my problem is not related to slow folding/unfolding behavior that you are getting, but if I set the

[Orgmode] Re: Org now fontifies code blocks

2010-09-09 Thread Thomas S. Dye
Hi Dan, Glad to know that Darlan's slowdown is fixed. No change here that I can tell. Now that I've had org-src-fontify- natively set to t for a while, I can see that the slowdown is proportional to the number and size of code blocks in the Org-mode file. It is most noticeable in a file

[Orgmode] Re: Org now fontifies code blocks

2010-09-09 Thread Dan Davison
Thomas S. Dye t...@tsdye.com writes: Hi Dan, Glad to know that Darlan's slowdown is fixed. No change here that I can tell. Now that I've had org-src-fontify- natively set to t for a while, I can see that the slowdown is proportional to the number and size of code blocks in the Org-mode

[Orgmode] Re: Org now fontifies code blocks

2010-09-09 Thread Thomas S. Dye
On Sep 9, 2010, at 12:35 PM, Dan Davison wrote: Thomas S. Dye t...@tsdye.com writes: Hi Dan, Glad to know that Darlan's slowdown is fixed. No change here that I can tell. Now that I've had org-src-fontify- natively set to t for a while, I can see that the slowdown is proportional to the

[Orgmode] Re: Org now fontifies code blocks

2010-09-08 Thread Bastien
Dan Davison davi...@stats.ox.ac.uk writes: (We badly need a customize group for these org-src but non-babel variables[1]. That suggests to me subsuming the Babel group (Should be Org Babel for consistency?) within a new group, perhaps Org Code or Org Src or Org Source Code ? Views? I find

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-08 Thread Darlan Cavalcante Moreira
Maybe my problem is not related to slow folding/unfolding behavior that you are getting, but if I set the org-src-tab-acts-natively variable to t the folding/unfolding of headlines becomes very slow for me. In fact, I was thinking that I had the problem described here, but I just isolated the

[Orgmode] Re: Org now fontifies code blocks

2010-09-08 Thread Dan Davison
Darlan Cavalcante Moreira darc...@gmail.com writes: Maybe my problem is not related to slow folding/unfolding behavior that you are getting, but if I set the org-src-tab-acts-natively variable to t the folding/unfolding of headlines becomes very slow for me. Thank you Darlan, I have just

[Orgmode] Re: Org now fontifies code blocks

2010-09-08 Thread Sébastien Vauban
Hi Bastien and Dan, Bastien wrote: Dan Davison davi...@stats.ox.ac.uk writes: (We badly need a customize group for these org-src but non-babel variables[1]. That suggests to me subsuming the Babel group (Should be Org Babel for consistency?) within a new group, perhaps Org Code or Org Src

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-08 Thread Erik Iverson
Sébastien Vauban wrote: Hi Bastien and Dan, Bastien wrote: Dan Davison davi...@stats.ox.ac.uk writes: (We badly need a customize group for these org-src but non-babel variables[1]. That suggests to me subsuming the Babel group (Should be Org Babel for consistency?) within a new group,

[Orgmode] Re: Org now fontifies code blocks

2010-09-08 Thread Dan Davison
Erik Iverson er...@ccbr.umn.edu writes: Sébastien Vauban wrote: Hi Bastien and Dan, Bastien wrote: Dan Davison davi...@stats.ox.ac.uk writes: (We badly need a customize group for these org-src but non-babel variables[1]. That suggests to me subsuming the Babel group (Should be Org Babel

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Sébastien Vauban
Hi all, Richard Riley wrote: Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Dan Davison
Thomas S. Dye t...@tsdye.com writes: Aloha Dan, This is really nice. Thanks for shepherding it along. In some of my use cases there is a substantial delay when opening a large file and then unfolding sections with many source code blocks. Hi Tom, I think this is a good point and probably

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Dan Davison
Richard Riley rile...@googlemail.com writes: Dan Davison davi...@stats.ox.ac.uk writes: Richard Riley rile...@gmail.com writes: Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Dan Davison
David O'Toole dto1...@gmail.com writes: I agree Bastien :) I agree too, but note that what we are agreeing to is a conditional statement... On Mon, Sep 6, 2010 at 2:30 PM, Bastien bastien.gue...@wikimedia.fr wrote: If setting org-src-fontify-natively to `t' by default triggers a debate on

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Richard Riley
Dan Davison davi...@stats.ox.ac.uk writes: Thomas S. Dye t...@tsdye.com writes: Aloha Dan, This is really nice. Thanks for shepherding it along. In some of my use cases there is a substantial delay when opening a large file and then unfolding sections with many source code blocks. Hi

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Carsten Dominik
On Tue, Sep 7, 2010 at 3:43 PM, Dan Davison davi...@stats.ox.ac.uk wrote: David O'Toole dto1...@gmail.com writes: I agree Bastien :) I agree too, but note that what we are agreeing to is a conditional statement... On Mon, Sep 6, 2010 at 2:30 PM, Bastien bastien.gue...@wikimedia.fr wrote:

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Bastien
Dan Davison davi...@stats.ox.ac.uk writes: But I do think we are gravitating towards turning it off, if it is causing noticeable slowness on startup. So unless there are more voices in favour of keeping it turned on for new users then I'll turn it off later today. I didn't test turning it on

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes: I *do* like the idea mentioned earlier to use a different background when fontification is turned on. Just a slight grey instead of white, for example. That would help distinguish things in export mode. +1 Or maybe a different font?

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Tom Short
I think it'd help for new users to keep it on by default, but since it can be changed, I'm fine either way. How hard would it be to use a property, so it could be changed on a per-file basis? If it's difficult, that time may be better spent profiling and speeding it up. - Tom On Tue, Sep 7, 2010

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Carsten Dominik
On Tue, Sep 7, 2010 at 4:33 PM, Bastien bastien.gue...@wikimedia.fr wrote: Carsten Dominik carsten.domi...@gmail.com writes: I *do* like the idea mentioned earlier to use a different background when fontification is turned on.  Just a slight grey instead of white, for example.  That would

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Sebastian Rose
Bastien bastien.gue...@wikimedia.fr writes: Carsten Dominik carsten.domi...@gmail.com writes: I *do* like the idea mentioned earlier to use a different background when fontification is turned on. Just a slight grey instead of white, for example. That would help distinguish things in export

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Sébastien Vauban
Hi Carsten, Bastien and the rest, Bastien wrote: Carsten Dominik carsten.domi...@gmail.com writes: I *do* like the idea mentioned earlier to use a different background when fontification is turned on. Just a slight grey instead of white, for example. That would help distinguish things in

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Richard Riley
Tom Short tshort.rli...@gmail.com writes: I think it'd help for new users to keep it on by default, but since it can be changed, I'm fine either way. How hard would it be to use a property, so it could be changed on a per-file basis? If it's difficult, that time may be better spent

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Thomas S. Dye
Hi Dan, Yes, I can confirm that (setq org-src-fontify-natively nil) makes unfolding snappy again. All the best, Tom On Sep 7, 2010, at 3:23 AM, Dan Davison wrote: Thomas S. Dye t...@tsdye.com writes: Aloha Dan, This is really nice. Thanks for shepherding it along. In some of my use

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Dan Davison
Sebastian Rose sebastian_r...@gmx.de writes: Bastien bastien.gue...@wikimedia.fr writes: Carsten Dominik carsten.domi...@gmail.com writes: I *do* like the idea mentioned earlier to use a different background when fontification is turned on. Just a slight grey instead of white, for

[Orgmode] Re: Org now fontifies code blocks

2010-09-07 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes: On Tue, Sep 7, 2010 at 3:43 PM, Dan Davison davi...@stats.ox.ac.uk wrote: David O'Toole dto1...@gmail.com writes: I agree Bastien :) I agree too, but note that what we are agreeing to is a conditional statement... On Mon, Sep 6, 2010 at

[Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread Richard Riley
Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful if people could report any

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread David O'Toole
maybe there could be an on-by-default variable called org-warn-when-editing-src-block-in-org-buffer, or make the text readonly, etc. making this on-by-default would seem to create another discussion about things being on-by-default :) however, if fontification is on by default, then this should

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread Erik Iverson
On 09/06/2010 11:59 AM, Richard Riley wrote: Eric S Fragaucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davisondavi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it

[Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread Dan Davison
Richard Riley rile...@gmail.com writes: Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread Bastien
If setting org-src-fontify-natively to `t' by default triggers a debate on whether we need to set org-warn-when-editing-src-block-in-org-buffer on or off by default, I'd rather set org-src-fontify-natively off by default... My 2 cts, -- Bastien

[Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread Richard Riley
Dan Davison davi...@stats.ox.ac.uk writes: Richard Riley rile...@gmail.com writes: Eric S Fraga ucec...@ucl.ac.uk writes: On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davison davi...@stats.ox.ac.uk wrote: I've just pushed changes which mean that Org now fontifies code in code blocks.

Re: [Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread David O'Toole
I agree Bastien :) On Mon, Sep 6, 2010 at 2:30 PM, Bastien bastien.gue...@wikimedia.fr wrote: If setting org-src-fontify-natively to `t' by default triggers a debate on whether we need to set org-warn-when-editing-src-block-in-org-buffer on or off by default, I'd rather set

[Orgmode] Re: Org now fontifies code blocks

2010-09-06 Thread Richard Riley
David O'Toole dto1...@gmail.com writes: I agree Bastien :) Possibly a customize interface for it would be nice too if the code is touched! On Mon, Sep 6, 2010 at 2:30 PM, Bastien bastien.gue...@wikimedia.fr wrote: If setting org-src-fontify-natively to `t' by default triggers a debate on

[Orgmode] Re: Org now fontifies code blocks

2010-09-02 Thread Sébastien Vauban
Hi Dan (and David), Dan Davison wrote: I've just pushed changes which mean that Org now fontifies code in code blocks. Currently, this is turned on by default, so it would be helpful if people could report any problems, and opinions Three remarks: 1. That simply *is* great! Thanks a lot,