From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Woody Newsgroups: gmane.emacs.help Subject: Re: Syntax Highlighting is toooo slow Date: Thu, 04 Aug 2005 01:19:00 +0800 Organization: 2046 Message-ID: <87acjzaqgr.fsf@narke.yellow.line> References: <87irynfkxx.fsf@narke.yellow.line> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123117395 8953 80.91.229.2 (4 Aug 2005 01:03:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2005 01:03:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 04 03:03:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0U7s-00054K-LV for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Aug 2005 03:02:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0UAe-0002tN-O0 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Aug 2005 21:05:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!Spring.edu.tw!news.nctu.edu.tw!news.neu.edu.cn!news.cn99.com!narke.yellow.line!news Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-NNTP-Posting-Host: 219.131.233.51 Original-X-Trace: mail.cn99.com 1123118097 29878 219.131.233.51 (4 Aug 2005 01:14:57 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Thu, 4 Aug 2005 01:14:57 +0000 (UTC) User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:zWh2J5wnLJeh828aVQ87FKu+2eQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:132889 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28407 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28407 david@adboyd.com (J. David Boyd) writes: > Steven Woody writes: > >> in varity of programming modes such as c-abbrev, c++-mode syntax >> highlighting is a kind friend. but i found these days that my syntax >> highting act too slow to make feeling good. it is always when i type in the >> last half of the code, the first half of code got colored correctly. what's >> the problem? >> > > > Are you using the ctypes functions, and have you defined many of your own > types? I've had that slow me down some... no! i tried a very simple test: ,---- | int main(void) { | int i = 0; | char *abc = "hello, world"; | | while (i < 100) | i++; | | exit(0); | } `---- after i from scatch input all the code above, there is no any color. then i close the file and re-open it. the color comes up. :( -- steven woody (id: narke) Jesse: I heard this story once about when the Germans were occupying Paris and they had to retreat back. They wired Notre Dame to blow, but they had to leave one guy in charge of hitting the switch. And the guy, the soldier, he couldn't do it. You know, he just sat there, knocked out by how beautiful the place was. And then when the allied troops came in, they found all the explosives just lying there and the switch unturned, and they found the same thing at Sacre Couer, Eiffel Tower. Couple other places I think... Celine: Is that true? Jesse: I don't know. I always liked the story, though. - Before Sunset (2004)