From: Ken Goldman <kgold@watson.ibm.com>
Subject: Re: How to comment out blocks in c-style?
Date: Thu, 08 Jun 2006 14:01:09 -0400 [thread overview]
Message-ID: <4489b778$1@news.greennet.net> (raw)
In-Reply-To: <1149777832.367176.145720@i39g2000cwa.googlegroups.com>
It should work correctly for C. I suspect that emacs thinks you are
editing C++ code. What does your mode line say? Is the file .c or .cpp?
Zhekka wrote:
> Hi all
>
> I'm using C-c C-c to comment out a block of code. This creates nice C++
> style comments, which is beautiful but not good for my ANSI C code. I
> would like to assign this key-combination (C-c C-c) C-style comment
> fashion. Is this possible?
>
> If my english is bad, here's an illustration:
>
> instead of:
> // a = piece+of_code;
> // which += was;
> // badly(written);
>
> would like to see:
> /* a = piece+of_code;
> * which += was;
> * written * well();
> */
next prev parent reply other threads:[~2006-06-08 18:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-08 14:43 How to comment out blocks in c-style? Zhekka
2006-06-08 18:01 ` Ken Goldman [this message]
2006-06-11 7:14 ` Zhekka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='4489b778$1@news.greennet.net' \
--to=kgold@watson.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.