all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Javier Oviedo" <email_joviedo@yahoo.com>
Subject: Problem with font-lock when opening a buffer
Date: Wed, 5 May 2004 16:57:59 -0400	[thread overview]
Message-ID: <c7bkgn$rh8$1@home.itg.ti.com> (raw)

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

             reply	other threads:[~2004-05-05 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-05 20:57 Javier Oviedo [this message]
2004-05-05 21:18 ` Problem with font-lock when opening a buffer Stefan Monnier
2004-05-06 14:21   ` Javier Oviedo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='c7bkgn$rh8$1@home.itg.ti.com' \
    --to=email_joviedo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.