From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Fantin Subject: Re: Src blocks fontification issue Date: Fri, 3 Sep 2010 10:04:57 +0200 Message-ID: References: <87eidb224b.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=42061 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrRH1-0005HS-Go for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrRGx-00015f-On for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:05:23 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:41936) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrRGx-00015Z-LV for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 04:05:19 -0400 Received: by vws16 with SMTP id 16so1521978vws.0 for ; Fri, 03 Sep 2010 01:05:19 -0700 (PDT) In-Reply-To: <87eidb224b.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs-orgmode@gnu.org Hi Dan, thanks for the answer and the unsollicited tip :) I tried opening the file with a bare emacs and the problem persists. I use true indentation in my files, which I think isn't what most people do, so maybe the parser gets confused by a combination of blocks not starting at column 0, and some other formatting, but I'm failing to see the pattern... Here is one of the incriminated files: http://pastebin.com/raw.php?i=3DyxdUmpKx Hope this is any help... Cheers On Fri, Sep 3, 2010 at 12:48 AM, Dan Davison wrote= : > Julien Fantin writes: > >> First congratulations on adding in-line fontification to source >> blocks, that's a great addition. >> >> However, since I pulled those changes, a recurring issue I've been >> having has become even more annoying. >> >> When opening an org file, some src blocks headers don't seem to get >> parsed properly, and now as a result, don't get fontified. >> They are functional though, since they properly get tangled, and C-c ' >> performs as expected. >> If I edit the header line, or the ones directly before and after it, >> the block gets back to normal. >> >> Here is a screenshot to make things clearer, as you can see there are >> no differences in formatting, and those properties drawer don't have >> anything weird, just a single ID. >> >> http://imagebin.org/112413 >> >> I was meaning to post a screenshot with whitespace-mode on to stress >> that there are no apparent formatting differences, but it turned out >> activating it fixed the issue ! >> >> Not sure what I can do to further help debugging this ? > > Hi Julien, > > I don't have any clever ideas about this, so I'm just going to suggest > the obvious: first a sanity check that it doesn't occur with emacs > -Q. Then some sort of quasi-binary search through your emacs > customisations. It looks like you're storing your emacs customisation in > an Org file, so you can knock out entire trees with :tangle: no > properties. > > Dan > > p.s. On a completely unrelated note, if you haven't already tried it: > > (add-hook 'emacs-lisp-mode-hook 'pretty-lambdas) > > where the `pretty-lambdas' function is in starter-kit-defuns.org at > git://github.com/eschulte/emacs-starter-kit.git > > (defun pretty-lambdas () > =C2=A0(font-lock-add-keywords > =C2=A0 nil `(("(?\\(lambda\\>\\)" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(0 (progn (compose-region (match-beginn= ing 1) (match-end 1) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0,(make-char 'greek-iso8= 859-7 107)) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nil)= ))))) > >> >> Cheers >> >> _______________________________________________ >> 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 >