From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David O'Toole" Subject: Re: Re: Org now fontifies code blocks Date: Mon, 6 Sep 2010 13:53:00 -0400 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39104 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsfsO-0006BS-1R for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 13:53:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsfsM-0006MC-8k for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 13:53:03 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:45461) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsfsM-0006M3-1r for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 13:53:02 -0400 Received: by wyb36 with SMTP id 36so5924618wyb.0 for ; Mon, 06 Sep 2010 10:53:01 -0700 (PDT) In-Reply-To: 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: Richard Riley Cc: emacs-orgmode@gnu.org 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 also be on by default, since fontification causes the mistaken in-org-buffer edits that Richard points out, which seems reasonable to want to prevent systematically. I've done this myself a few times. On Mon, Sep 6, 2010 at 12:59 PM, Richard Riley wrote: > Eric S Fraga writes: > >> On Thu, 02 Sep 2010 08:51:16 -0700, 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 as to whether it >>> should be on or off by default. >> >> [...] >> >> This is brilliant! =A0Works very well on my notebook (with small code >> blocks as that's all I tend to have). =A0Many thanks! > > Without wanting to rock the boat I think its safer to have this disabled > by default. I cant tell you how many times I thought I was in the LISP > buffer and ended up making a mess since this enhancement was added. I > realise I can configure it myself but possibly the more conservative > "stick with old default" is better? It IS a nice feature when in more > capable hands than mine ;) What next? nxhtml integration and live > editing inside the src blocks? > > > > > > _______________________________________________ > 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 >