From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: Syntax Highlighting Latency in Emacs Date: Tue, 21 Dec 2004 18:38:05 GMT Organization: x Message-ID: References: <9badnW_9ItZTWSHcRVn-iw@comcast.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1103654384 5041 80.91.229.6 (21 Dec 2004 18:39:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2004 18:39:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 21 19:39:35 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 1Cgov1-0004Gn-00 for ; Tue, 21 Dec 2004 19:39:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cgp5W-0002hZ-L8 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2004 13:50:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!prodigy.com!newsmst01a.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!404941e6!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:uZqI6kGW24ScaD+wCKom6saSPK4= Original-Lines: 18 Original-NNTP-Posting-Host: 66.194.80.196 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr11.news.prodigy.com 1103654285 ST000 66.194.80.196 (Tue, 21 Dec 2004 13:38:05 EST) Original-NNTP-Posting-Date: Tue, 21 Dec 2004 13:38:05 EST X-UserInfo1: OH]YBTSEJCUYRTH]]ZN@_TDAYZOZ@GXOXB]T]_MIJQR@EPIB_VUKAH_[MTX\IS[K[NGYJJFNOFZR_G[BUNTAOQLFE^TEHRPI]PZZRP_BMDSFQFL_]CBHXRWCMDCUZAZN@D_AKMNLEI]MWHCSXL^]NNC__CZFGSGHYYXWPFG@SCAVA]\FT\@B\RDGENSUQS^M Original-Xref: shelby.stanford.edu gnu.emacs.help:127448 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:22897 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22897 >>>> jab3 writes: jab3> I'm also interested in figuring out (maybe jab3> with regular expressions) a way to make Emacs emulate another vim feature jab3> that I do like: highlighting control characters in quoted strings in a C jab3> file. For instance, in printf("Hello %s\n", name); I would like the %s and jab3> \n highlighted in a different color from the normal string quote color. Do you mean like M-x highlight-regexp [ret] \%s M-x highlight-regexp [ret] \\n C-x w h Or do you mean something more permanent? You could probably use highlight-regexp in conjunction with one of the font-lock callbacks... But there's probably a better way.