From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jab3 Newsgroups: gmane.emacs.help Subject: Re: Syntax Highlighting Latency in Emacs Date: Sun, 12 Dec 2004 17:23:09 -0500 Message-ID: <9badnW_9ItZTWSHcRVn-iw@comcast.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1102890295 24200 80.91.229.6 (12 Dec 2004 22:24:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Dec 2004 22:24:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 12 23:24:51 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cdc94-0005IQ-00 for ; Sun, 12 Dec 2004 23:24:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CdcJ8-0006LG-MS for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Dec 2004 17:35:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 12 Dec 2004 16:23:10 -0600 Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 68.58.174.170 Original-X-Trace: sv3-h9kbP5TJZgvV7BdFsHoSvLbfBhRHTplyNNaby5ESerQkdR47HzqsrVxhw6Vm9Ak6gVFINPPEuFH+//R!PYCKdL2qycT+dN+4NZoYwZgKCXi2xIx9lfW62pF3SCuNcvUs0HK+I2hM0Hw7VQ== Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.20 Original-Xref: shelby.stanford.edu gnu.emacs.help:127266 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: main.gmane.org gmane.emacs.help:22695 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22695 Peter Dyballa finally wrote on Sun December 12 2004 08:22 am: > > Am 12.12.2004 um 02:42 schrieb jab3: > >> a few thousand K > > In other words: a few MB. Then it's quite normal. > In other words, yeah, I wasn't thinking and I'm an idiot, etc. :-) I meant a few K. I remember in the manual Stallman saying something about large files requiring more time to process, so with the 'few thousand K' I was trying to say that that wasn't the problem, but of course I misspoke. Whoops. (I've got the GNU Emacs manual (the paper version from FSF) so I'm going to look through it to see if I can figure something out) It just seems odd; I mean, it's still slower than vim with the same file, no matter the size. Maybe it is the overhead that vim doesn't have to account for (i.e. - maybe it's because Emacs is a more powerful program checks and does so much at once; I don't mean anything derogatory); I don't know. > Remember that it's Lisp that finds and then checks the words and then > does appropriate syntax-highlighting. Yeah, I wondered about that. I'm also interested in figuring out (maybe with regular expressions) a way to make Emacs emulate another vim feature that I do like: highlighting control characters in quoted strings in a C file. For instance, in printf("Hello %s\n", name); I would like the %s and \n highlighted in a different color from the normal string quote color. So I may be adding more overhead, which is why I wanted to see if it was a problem that could be diminished a bit. Cheers and thanks, jab3