From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-mode fontification error [6 times] Date: Tue, 03 Apr 2012 17:23:20 -0400 Message-ID: <6913.1333488200@alphaville> References: <874o1fdvzx.fsf@gnu.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFBCJ-0006VR-25 for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 17:23:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFBCH-000615-A5 for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 17:23:26 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:5036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFBCH-000610-5g for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 17:23:25 -0400 In-Reply-To: Message from Henning Redestig of "Tue, 03 Apr 2012 21:43:46 +0200." 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: Henning Redestig Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Henning Redestig wrote: > +1 on this, I get 'org-mode fontification error' all the time after > having typed just > > #+ > > in an org buffer. with org 7.8.08 and emacs 23.1.50.1 and running with emacs -Q > > 2011/8/18 Leo : > > On 2011-08-18 15:22 +0800, Bastien wrote: > >>> Just a heads-up. I saw this in my *message* buffer. I don't know how > >>> it happened. > >> > >> Is this with emacs -Q? > >> > >> I am unable to reproduce this with emacs-23.3.1 and emacs-24.0.50.1. > > > > It is in my normal running emacs session. I haven't found a reproduction > > recipe. But I have been using the same org-mode setup for years. > > > > Leo > > 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). Nick