From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-mode fontification error [6 times] Date: Wed, 04 Apr 2012 08:30:02 +0200 Message-ID: <87fwckm2l1.fsf@gnu.org> References: <874o1fdvzx.fsf@gnu.org> <6913.1333488200@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFJiA-0007O4-DR for emacs-orgmode@gnu.org; Wed, 04 Apr 2012 02:28:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFJi5-0007q6-Nf for emacs-orgmode@gnu.org; Wed, 04 Apr 2012 02:28:53 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:35519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFJi5-0007pr-ED for emacs-orgmode@gnu.org; Wed, 04 Apr 2012 02:28:49 -0400 Received: by wibhj13 with SMTP id hj13so164203wib.12 for ; Tue, 03 Apr 2012 23:28:47 -0700 (PDT) In-Reply-To: <6913.1333488200@alphaville> (Nick Dokos's message of "Tue, 03 Apr 2012 17:23:20 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Hi Nick, Nick Dokos writes: > Confirmed. It only happens when you start typing into an empty buffer. > Looks like an off-by-one error in org.el:org-fontify-meta-lines-and-blocks-1, > aroung line 5487: > > ,---- > | ;; just any other in-buffer setting, but not indented > | (add-text-properties > | beg (1+ (match-end 0)) > | '(font-lock-fontified t face org-meta-line)) > `---- > > The second arg should probably be just (match-end 0). That's correct. I first thought (min (point-max) (1+ (match-end 0))) would have been safer, but I really don't see why the 1+. Please confirm this is fixed. Thanks, -- Bastien