From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Micha Feigin Newsgroups: gmane.emacs.help Subject: Re: uncommenting a commented region leaves it commented in latex (auctex) Date: Mon, 12 Jan 2004 20:10:43 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040112181042.GF2906@luna.mooo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073939157 4808 80.91.224.253 (12 Jan 2004 20:25:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2004 20:25:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 12 21:25:49 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ag8dB-0006sP-00 for ; Mon, 12 Jan 2004 21:25:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ag8o1-0003RM-Nq for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jan 2004 15:37:01 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ag8nY-0003QW-4l for help-gnu-emacs@gnu.org; Mon, 12 Jan 2004 15:36:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ag8n2-0003DH-2U for help-gnu-emacs@gnu.org; Mon, 12 Jan 2004 15:36:31 -0500 Original-Received: from [132.66.16.11] (helo=post.tau.ac.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ag7Wb-0005pZ-GX for help-gnu-emacs@gnu.org; Mon, 12 Jan 2004 14:14:57 -0500 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by post.tau.ac.il (Postfix) with ESMTP id 841C647F29 for ; Mon, 12 Jan 2004 20:13:16 +0200 (IST) Original-Received: from post.tau.ac.il (localhost.localdomain [127.0.0.1]) by localhost.localdomain (VaMailArmor-2.0.1.16) id 15859-7923E3C7; Mon, 12 Jan 2004 20:13:16 +0200 Original-Received: from litshi.luna.local (unknown [62.219.140.142]) by post.tau.ac.il (Postfix) with ESMTP id 3A21B47F73 for ; Mon, 12 Jan 2004 20:13:16 +0200 (IST) Original-Received: from micha by litshi.luna.local with local (Exim 4.30) id 1Ag6WR-0002Oe-46 for help-gnu-emacs@gnu.org; Mon, 12 Jan 2004 20:10:43 +0200 Original-To: help-emacs Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.23.0.2; VDF: 6.23.0.29; host: localhost) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:15949 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15949 On Mon, Jan 12, 2004 at 03:00:31PM +0000, Kester Clegg wrote: > Micha Feigin writes: > > > When I try to uncomment a region in LaTex-mode (auctex) using > > tex-un-comment-region when the region was previously commented with > > tex-comment-region doesn't return to the previous state. > > tex-comment-region adds %% > > and tex-un-comment-region removes only one %. > > uncomment-region seems to do the right job. > > Are you using the simple keybinding of M-;? That uncomments and > comments regions fine for me in all modes. > > M-; runs the command comment-dwim > which is an interactive compiled Lisp function in `newcomment'. > (comment-dwim ARG) > Thanks, that seems the easiest way. I was using "C-c ;" to comment and later found that "C-u C-c ;" uncomments properly. The uncomment command from the menu Latex-miscellaneous-uncomment which is bound to "C-c :" only removes the first %. > > -- > ************************************************************************ > Kester Clegg Dept. of Computer Science, > Research Assistant (UTC) University of York, > Tel (01904) 43 27 49 email: kester at cs.york.ac.uk > ************************************************************************ > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs >