help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Surrounding statements with conditionals in C mode.


From: Sandip Chitale
Subject: Re: Surrounding statements with conditionals in C mode.
Date: Mon, 08 Sep 2003 14:24:25 GMT

Look into <youremacsdir>/lisp/tempo.el file for how to set up such a template.

"Saurabh Kapoor" <u02137@cs.unipune.ernet.in> 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
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]