From xemacs-m  Tue Apr 29 19:18:16 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id TAA12455
	for <xemacs-beta@xemacs.org>; Tue, 29 Apr 1997 19:18:13 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id RAA18798;
	Tue, 29 Apr 1997 17:31:10 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Reproduceable font-lock bug
References: <199704292348.TAA03359@anthem.CNRI.Reston.Va.US>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: "Barry A. Warsaw"'s message of Tue, 29 Apr 1997 19:48:33 -0400
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 29 Apr 1997 17:31:09 -0700
Message-ID: <m2ohaxz702.fsf@altair.xemacs.org>
Lines: 33
X-Mailer: Gnus v5.4.48/XEmacs 20.2(beta4)

Barry A Warsaw <bwarsaw@CNRI.Reston.VA.US> writes:

> Here is a bug in font-lock that I've been able to reproduce under
> 19.15 and 20.2-b1.

O.K.  Me too.

> Power cycling font-lock-mode does *not* fix the problem.

Yes, but font-lock-fontify-buffer *does* fix the problem.  How is this 
anything more than another manifestation of the fact that font-lock
isn't very smart about context?  (Serious question, I'm not very
knowledgeable about the internals of font-locking).

Consider this (starting of course from xemacs -q -no-site-file):

Position to the '1.0.[1-2]_x86' line and do `C-o C-d'.  I see the line 
as being all black with a green comma.  Move above the comma in the
previous line '1.0.[1-2]', insert a SPC and delete it.  No change.
Move to after the comma in the black line and do the same thing.  It
now has black '', and green letters like the other lines.

`M-x font-lock-fontify-buffer' to reset.  Position to the
'1.0.[1-2]_x86' line and do `C-o C-d'.  Now move to the subsequent
line after the comma ('1.0.[1-2]') and insert a SPC and delete it.  It 
turns black.  Move back to the first black line and insert a SPC and
delete it.  No change.  Move to the end of the line above
('1.0.[1-2]') and insert a SPC and delete it.  Now repeat that step on
first the '1.0.[1-2]_x86' line and then the '1.0.[1-2]' line.  The
coloring comes back.
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

