From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henning Redestig Subject: Re: org-mode fontification error [6 times] Date: Wed, 4 Apr 2012 19:46:46 +0200 Message-ID: References: <874o1fdvzx.fsf@gnu.org> <6913.1333488200@alphaville> <87fwckm2l1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFUIY-0004Ro-LY for emacs-orgmode@gnu.org; Wed, 04 Apr 2012 13:47:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFUIJ-0007A5-20 for emacs-orgmode@gnu.org; Wed, 04 Apr 2012 13:47:09 -0400 In-Reply-To: <87fwckm2l1.fsf@gnu.org> 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: Bastien Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Better now but still some issues here, now if I start a new org buffer and = type : > 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-bloc= ks-1, >> aroung line 5487: >> >> ,---- >> | =A0 =A0 =A0 =A0 ;; just any other in-buffer setting, but not indented >> | =A0 =A0 =A0 =A0 (add-text-properties >> | =A0 =A0 =A0 =A0 =A0beg (1+ (match-end 0)) >> | =A0 =A0 =A0 =A0 =A0'(font-lock-fontified t face org-meta-line)) >> `---- >> >> The second arg should probably be just (match-end 0). > > That's correct. =A0I 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, > > -- > =A0Bastien --=20 /Henning