From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.help Subject: Re: Commenting Multiple Lines Date: Mon, 19 Sep 2011 06:45:18 +0200 Message-ID: <4E76C8DE.3060502@dogan.se> References: <8139ftwooj.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1316407546 31519 80.91.229.12 (19 Sep 2011 04:45:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Sep 2011 04:45:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 19 06:45:42 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Vjh-0000tl-VC for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Sep 2011 06:45:42 +0200 Original-Received: from localhost ([::1]:35041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Vjb-0000EY-Qv for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Sep 2011 00:45:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5VjW-0000EP-OZ for help-gnu-emacs@gnu.org; Mon, 19 Sep 2011 00:45:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5VjV-0001oY-P3 for help-gnu-emacs@gnu.org; Mon, 19 Sep 2011 00:45:30 -0400 Original-Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:37255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5VjV-0001oU-FM for help-gnu-emacs@gnu.org; Mon, 19 Sep 2011 00:45:29 -0400 Original-Received: from c80-216-107-100.bredband.comhem.se ([80.216.107.100]:55952 helo=[192.168.0.11]) by ch-smtp04.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1R5VjR-0004yu-E0 for help-gnu-emacs@gnu.org; Mon, 19 Sep 2011 06:45:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 In-Reply-To: X-Originating-IP: 80.216.107.100 X-Scan-Result: No virus found in message 1R5VjR-0004yu-E0. X-Scan-Signature: ch-smtp04.sth.basefarm.net 1R5VjR-0004yu-E0 d2426b678722f4c062dd49543a49d3be X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.76.153.5 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82265 Archived-At: On 2011-09-19 05:38, Nachiappan A wrote: > Hi All, > > Thanks for the reply. M-; works for me. It does both the job of > commenting and un-commenting. > > @Drew Adams : When i did 'C-h k' and tried 'C-c C-c' below was the > description > "runs the command comment-region, which is an interactive compiled Lisp > function." > > Just trying to understanding, both C-c C-c and M-; does the job of > commenting, what is the basic difference ? C-c C-c is not a universal binding for commenting. M-; is. C-c C-c is most likely bound by some major mode you are using. Try it in e.g. lisp-mode and you will see that it does not do commenting there. > Where can i find all such emacs shortcuts related to programming ? This also depends on the modes you are using. You can use e.g. C-h b to see all bindings currently active (usually a pretty long list), or you can use C-h m to see a description of all modes you are currently using, which narrows the list of bindings for each mode down.