From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: Org now fontifies code blocks Date: Tue, 07 Sep 2010 12:54:07 -0400 Message-ID: <878w3dxzo0.fsf@stats.ox.ac.uk> References: <8739uvw0hg.fsf@stats.ox.ac.uk> <87vd7j1nck.fsf@stats.ox.ac.uk> <87lj7kqh3f.fsf_-_@stats.ox.ac.uk> <874oe6pwew.wl%ucecesf@ucl.ac.uk> <87mxrug1x9.fsf@gnu.org> <87sk1lmzyo.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=50321 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot1RE-0005PK-UY for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 12:54:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ot1Qz-0006zO-KR for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 12:54:15 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:59471) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ot1Qz-0006yn-D3 for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 12:54:13 -0400 In-Reply-To: (Carsten Dominik's message of "Tue, 7 Sep 2010 16:22:40 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Richard Riley , emacs-orgmode@gnu.org, Bastien Carsten Dominik writes: > On Tue, Sep 7, 2010 at 3:43 PM, Dan Davison wrote: >> "David O'Toole" 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 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 >> >> I don't think it is clear that there is such a debate. >> >> 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. > > Just to add to this: After trying it more, I see another reason why > it would be good > to have it turned off by default. Fontification gives meaning to pieces > of text, and that meaning is different in different major modes. So > this is watering > down the meaning of org-mode syntax font locking. So it is good for experts, > but confusing for newbies. So my vote goes to off. OK, this is now off by default. And it's added to customize under the "Org Appearance" and "Babel" groups. (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 *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. I haven't addressed this. Dan > > - Carsten > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Footnotes: [1] E.g. Org Src Lang Modes is within Org Edit Structure which is within Org Structure, which is deeply obscure!