From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Martin" Newsgroups: gmane.emacs.help Subject: Re: hightlight if/ifdef blocks Date: 5 Nov 2006 03:01:15 -0800 Organization: http://groups.google.com Message-ID: <1162724474.951981.45560@m73g2000cwd.googlegroups.com> References: <1162283062.420423.84720@b28g2000cwb.googlegroups.com> <87vem0oe4c.fsf@mail.com> <877iyfxl53.fsf@mail.com> <1162455753.364675.44070@m7g2000cwm.googlegroups.com> <87k62cg1ra.fsf@mail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1162726827 6812 80.91.229.2 (5 Nov 2006 11:40:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2006 11:40:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 05 12:40:26 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GggMO-0002T5-LA for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Nov 2006 12:40:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GggMO-0006xn-6o for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Nov 2006 06:40:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 85.197.23.157 Original-X-Trace: posting.google.com 1162724481 5526 127.0.0.1 (5 Nov 2006 11:01:21 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 5 Nov 2006 11:01:21 +0000 (UTC) In-Reply-To: <87k62cg1ra.fsf@mail.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=85.197.23.157; posting-account=CcyRbAwAAAA3Q1SnjcEWvdiZewaBAN6Y Original-Xref: shelby.stanford.edu gnu.emacs.help:142932 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:38550 Archived-At: As far as I understood the hide-ifdef-mode correctly it can either hide code completely or partially. As I just want to highlight the code this (in fact) doesn't help me. Thanks anyway Martin Fang lun gang wrote: > >>>>> "Martin" == Martin writes: > > Martin> might or might not work with the one or the other compiler. To > Martin> avoid this uncertainty I should use #if 0 which I think makes sense > Martin> and is ok for me. (can't find the post though, sorry ...) However, > Martin> emacs does not show me these blocks as "unused" comments, but as > Martin> c-code. So, back to my original question ... how to get these > Martin> blocks to change their color :-) > > Thanks at first. > > As to your original question, I known there is a hide-ifdef-mode although it > may not satisfy you. > > -- > Fang lun gang