From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Andy" Newsgroups: gmane.emacs.help Subject: Re: How to uncomment Perl program in emacs? Date: 19 Aug 2005 09:06:01 -0700 Organization: http://groups.google.com Message-ID: <1124467561.583599.312110@g14g2000cwa.googlegroups.com> References: <1124400239.825424.94340@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1124467714 12832 80.91.229.2 (19 Aug 2005 16:08:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2005 16:08:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 19 18:08:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E69OA-0003Gt-5t for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Aug 2005 18:06:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E69Rk-0007is-40 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Aug 2005 12:10:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 71.248.13.230 Original-X-Trace: posting.google.com 1124467567 26921 127.0.0.1 (19 Aug 2005 16:06:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 19 Aug 2005 16:06:07 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=71.248.13.230; posting-account=U62aJg0AAABJ6P31EDiB7cOQUZhvKDjU Original-Xref: shelby.stanford.edu gnu.emacs.help:133337 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:28864 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28864 Alan Mackenzie =E5=86=99=E9=81=93=EF=BC=9A > C-u M-x comment-region ;-) "C-u M-x comment-region" works perfectly on my Emacs (which I igorantly thought to be recent version, sorry about it) to uncomment Perl codes. Thanks a lot! > Put this in your .emacs: > > (eval-after-load "perl-mode" > '(define-key perl-mode-map "\C-c\C-c" 'comment-region)) > > (DON'T miss out the tick at the beginning of the second line. It's > important.) > That should set up your mode so that you can use C-c C-c for perl. I can achieve both commenting Perl code with "\C-c\C-c" and uncommenting with "C-u\C-c\C-c" after I put in those macros as you suggested to .emacs. Again, Thanks tremendously! > Alan Mackenzie (Munich, Germany) Andy