From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gamename Newsgroups: gmane.emacs.help Subject: Re: Font lock for #if 0 ... #endif Date: 18 May 2007 08:11:08 -0700 Organization: http://groups.google.com Message-ID: <1179501067.575165.227340@e65g2000hsc.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1179502412 24428 80.91.229.12 (18 May 2007 15:33:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 May 2007 15:33:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 18 17:33:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hp4SP-0001Hv-9U for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2007 17:33:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hp4ac-0004dK-NG for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2007 11:41:58 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!e65g2000hsc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 67.110.226.222 Original-X-Trace: posting.google.com 1179501068 26866 127.0.0.1 (18 May 2007 15:11:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 18 May 2007 15:11:08 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e65g2000hsc.googlegroups.com; posting-host=67.110.226.222; posting-account=l5OKnQ0AAADrHOPMVhCpAmIoocOY27KZ Original-Xref: shelby.stanford.edu gnu.emacs.help:148555 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:44147 Archived-At: On May 15, 11:13 pm, martin rudalics wrote: > > Sometimes in my C routines, I do > > > > #if 0 > > > > #endif > > > > to temporarily skip compilation of code (mostly for debugging > > purposes). > > > > How can I change fontlock to recolor the region to something obvious? > > I won't recommend doing that in font-lock - the region could be too > large to be handled efficiently. Try hide ifdef (hideif.el): If you > don't like the ellipses you could use overlays to "recolor the region." Ok. I guess it really isn't possible to do what I wanted to anyway. -T