From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Javier Oviedo" Newsgroups: gmane.emacs.help Subject: Problem with font-lock when opening a buffer Date: Wed, 5 May 2004 16:57:59 -0400 Organization: Texas Instruments Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083791582 31985 80.91.224.253 (5 May 2004 21:13:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 May 2004 21:13:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 23:12:59 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLThL-0003ek-00 for ; Wed, 05 May 2004 23:12:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLTg0-0000dW-Is for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2004 17:11:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshosting.com!nx01.iad01.newshosting.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!attdl1!attdl2!ip.att.net!news.ti.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 68 Original-NNTP-Posting-Host: gt64v7121.telogy.design.ti.com Original-X-Trace: home.itg.ti.com 1083790679 28200 158.218.103.164 (5 May 2004 20:57:59 GMT) Original-X-Complaints-To: usenet@news.ti.com Original-NNTP-Posting-Date: 5 May 2004 20:57:59 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Original-Xref: shelby.stanford.edu gnu.emacs.help:122999 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18284 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18284 Hello all: I asked this question a few months ago, but no one responded. I'm hoping to have a little better luck this time. :-) It emacs takes a long time to load/open a c-mode file, especially if there are already existing c-mode buffers in emacs. The problem/issue is two fold: 1. When I load a c-mode buffer(.c, .h, etc), emacs attempts to fontify the buffer several seperate times before actually displaying it. I don't think that is normal behavior but please correct me if I am wrong. Could there be something in my configuration that is causing this? 2. The bigger issue is that when I load the file, emacs goes through each c-mode buffer already open and fontifies it. This can take quite a bit of time if I have many files open, which is most often the case. Some times I wait as long as 5-7 seconds from the time that I "open" a file to the time that it actually displays. This is quite annoying. I can see in the mode-line as emacs goes one by one fontifying my c-mode buffers before loading the file desired. Below is the output of the *Message* buffer with my notes interleaved. Can someone please help me out here?? Thanks in advance!!! ******** No files have been loaded in emacs yet. ******** Now loading file siuprd.c Loading cc-mode...done Fontifying siuprd.c... (regexps.......................) Loading cc-mode...done Fontifying siuprd.c... (regexps.......................) Loading cc-mode...done Fontifying siuprd.c... (regexps.........................) Loading cc-mode...done Loading semantic-c...done Mark set [2 times] ******** Now loading file pvppack.h Note: file is write protected Fontifying pvppack.h... (regexps.......................) Note: file is write protected Fontifying siuprd.c... (regexps.........................) Note: file is write protected Fontifying pvppack.h... (regexps.........................) Note: file is write protected Mark set [2 times] ******** Now loading file rcutxrx.c Reading view properties...done Fontifying rcutxrx.c... (regexps.......................) Note: file is write protected Fontifying pvppack.h... (regexps.........................) Note: file is write protected Fontifying siuprd.c... (regexps.........................) Note: file is write protected Fontifying rcutxrx.c... (regexps.........................) Note: file is write protected Mark set [2 times] -- Javier