From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert D. Crawford" Newsgroups: gmane.emacs.help Subject: Re: I cannot find how to comment a block Date: Sun, 09 Apr 2006 16:06:18 -0500 Message-ID: <87zmiuh31x.fsf@laptop.rdc1.home> References: <1144610963.684737.168090@v46g2000cwv.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144618886 13424 80.91.229.2 (9 Apr 2006 21:41:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Apr 2006 21:41:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 09 23:41:25 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 1FSheu-00061U-EB for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Apr 2006 23:41:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FShet-00033x-VL for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Apr 2006 17:41:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 09 Apr 2006 16:06:20 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:oU81Dq12ag4BITx+oxuYoswT4zE= Original-Lines: 19 Original-NNTP-Posting-Host: 68.52.232.141 Original-X-Trace: sv3-GWqLbvTl2e/Vz8+UgKcG7V3T558YhVNT0eBGI6ubYPY4Kqw4NLqk2rK1auADqO0I9a91MLSrG2jLIOX!Of9jlRaiigx6oVnuIy2SMyv0I/S9xYYpD/gZnS3EQ07gh1D2DzhYEzQF00yy145HnZ5J Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:138648 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:34266 Archived-At: volunteers@gmail.com writes: > Hi, I know this is a basic question but I just didn't find the > solution: in cc-mode (I was writing C++ codes), how can I comment a > block? I tried 'M-;' and it just adds comments behind that line. What > I want is to comment this line or several lines (add // in front of > every line, or /* ... */) . Thanks. Try C-c C-c or M-x comment-region. To find these things where you think you might have an idea of the command name, try M-x apropos or C-h a. I found this by using the command C-h a comment in a C++ file. rdc -- <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Robert D. Crawford rdc1x@comcast.net You are magnetic in your bearing. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>