From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Sandip Chitale" Newsgroups: gmane.emacs.help Subject: Re: Surrounding statements with conditionals in C mode. Date: Mon, 08 Sep 2003 14:24:25 GMT Organization: Comcast Online Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1063037661 22458 80.91.224.249 (8 Sep 2003 16:14:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2003 16:14:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 18:14:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wOf0-00018G-01 for ; Mon, 08 Sep 2003 18:14:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wOdJ-0001s1-Eh for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2003 12:12:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!rwcrnsc53.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-NNTP-Posting-Host: 12.235.79.247 Original-X-Complaints-To: abuse@comcast.net Original-X-Trace: rwcrnsc53 1063031065 12.235.79.247 (Mon, 08 Sep 2003 14:24:25 GMT) Original-NNTP-Posting-Date: Mon, 08 Sep 2003 14:24:25 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:116427 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12346 Look into /lisp/tempo.el file for how to set up such a template. "Saurabh Kapoor" wrote in message news:mailman.206.1062751223.18171.help-gnu-emacs@gnu.org... > I've got several statements in my c code that i wish to surround by > #ifdefs and #endif. > > Eg. The following code : > > printf("This is debugging info: %d\n",i); > printf("This is some more debugging info: \n"); > > should become > > #ifdef MACRO_NAME > printf("This is debugging info: %d\n",i); > printf("This is some more debugging info: \n"); > #endif > > So, all that i have to do is to write the macro name. > Is there a way to do this. > > Thanks, > Saurabh Kapoor > > III Semester, > Department of Computer Science, > University of Pune. > India. > > > -- > "...BACKWARDS understood be only can but, > forwards lived be must Life" > -- Kierkegaard Soren > > >