From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: How to comment out blocks in c-style? Date: Thu, 08 Jun 2006 14:01:09 -0400 Message-ID: <4489b778$1@news.greennet.net> References: <1149777832.367176.145720@i39g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149792034 26786 80.91.229.2 (8 Jun 2006 18:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jun 2006 18:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 08 20:40:34 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 1FoPQm-0003xK-Bg for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jun 2006 20:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FoPQl-0000Ez-R2 for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jun 2006 14:40:31 -0400 User-Agent: Mozilla/5.0 (X11; U; AIX 000C89FF4C00; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <1149777832.367176.145720@i39g2000cwa.googlegroups.com> Original-NNTP-Posting-Host: 192.91.197.52 X-Original-NNTP-Posting-Host: 192.91.197.52 Original-X-Trace: 9 Jun 2006 14:01:28 -0400, 192.91.197.52 Original-Lines: 23 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!news.mv.net!news.destek.net!mozart.jlc.net!news.greennet.net!192.91.197.52 Original-Xref: shelby.stanford.edu gnu.emacs.help:139735 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:35359 Archived-At: 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(); > */