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: Re: Problem with font-lock when opening a buffer Date: Thu, 6 May 2004 10:21:54 -0400 Organization: Texas Instruments Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083855984 21286 80.91.224.253 (6 May 2004 15:06:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 May 2004 15:06:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 06 17:06:15 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 1BLkRz-0006xB-00 for ; Thu, 06 May 2004 17:06:15 +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 1BLjuM-00040w-AY for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2004 10:31:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.prairienet.org!news.ks.uiuc.edu!news.glorb.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: 30 Original-NNTP-Posting-Host: gt64v7121.telogy.design.ti.com Original-X-Trace: home.itg.ti.com 1083853314 8802 158.218.103.164 (6 May 2004 14:21:54 GMT) Original-X-Complaints-To: usenet@news.ti.com Original-NNTP-Posting-Date: 6 May 2004 14:21:54 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:123023 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:18310 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18310 Actually, I figured out what my problem was. I had a function that I added to the c-mode-common-hook. This function contained about 10 different requires and some other stuff. Every time I opened a c-file this was apparently doing "something" that caused the fortifying... Instead of doing through the function and add-hook, I simply run this function once when emacs starts and now I see no delay whatsoever. Thanks for the help, anyway. Take care. -- Javier "Stefan Monnier" wrote in message news:jwvsmeepobm.fsf-monnier+gnu.emacs.help@gnu.org... > > 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: > [...] > > Loading semantic-c...done > > Have you tried it without Semantic? > > > Stefan