A little more futzing led me to another interesting observation: it seems to be related to file size. A quick test on a few different files only showed the coloring issues on files over ~700 lines. Testing with a big file and a small file, it seems that the _initial value for font-lock-keywords depends on the file size_! When I load a small file, the font-lock-keywords variable get init-ed to one value (let's call that value "A") in that buffer and the coloring is correct. No amount of reverting of the buffer changes the coloring or the value. But, when I open a large file, the initial coloring is wrong, and the value of font-lock-keywords is _different_ (let's call that value "B"). when I revert the large file, then the coloring is correct, and the font-lock-keywords is now set to "A" (and the coloring seems to stay correct through subsequent buffer reverts).
So, anyone have an idea when the font-lock-keywords variable may get setup differently (at least initially) depending on buffer size? -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jason McBrayer Sent: Wednesday, April 27, 2011 10:07 AM To: [email protected] Cc: [email protected] Subject: Re: [jdee-users] erratic font-lock behavior (emacs 23) On Tue, Apr 26, 2011 at 11:12 PM, <[email protected]> wrote: > Im not sure I understand what you are asking. Ive customized all my > faces. The issue isnt the face color, its that the wrong faces are being > applied, seemingly due to the fact that the value of font-lock-keyworks > changes over the lifetime of the buffer. Could it be that you are accidentally sometimes in java-mode, and sometimes in jde-mode? Could you C-h m and see which mode is active when each set of faces is applied? I've tested and seen that java-mode and jde-mode do have different sets of faces. -- Jason F. McBrayer http://jfm.carcosa.net/ ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ jdee-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jdee-users
