From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: LISP routines for commenting Date: Sat, 09 Aug 2008 19:04:05 +0200 Message-ID: <87ljz66ry2.fsf@tux.homenetwork> References: <87proi6tdp.fsf@tux.homenetwork> <489DC909.2080603@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218301652 19974 80.91.229.12 (9 Aug 2008 17:07:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2008 17:07:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, weber To: "Lennart Borgman \(gmail\)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 09 19:08:23 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRrvS-0000y7-5d for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Aug 2008 19:08:22 +0200 Original-Received: from localhost ([127.0.0.1]:51315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRruW-0002Yq-Au for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Aug 2008 13:07:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRruD-0002XA-18 for help-gnu-emacs@gnu.org; Sat, 09 Aug 2008 13:07:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRruB-0002VA-MG for help-gnu-emacs@gnu.org; Sat, 09 Aug 2008 13:07:04 -0400 Original-Received: from [199.232.76.173] (port=56800 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRruB-0002Uv-EB for help-gnu-emacs@gnu.org; Sat, 09 Aug 2008 13:07:03 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.170]:46550) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRruA-0001w8-SZ for help-gnu-emacs@gnu.org; Sat, 09 Aug 2008 13:07:03 -0400 Original-Received: by ug-out-1314.google.com with SMTP id l31so113612ugc.48 for ; Sat, 09 Aug 2008 10:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=x+m0J8OZLGlFC3VJ4aHSNP20Ixywhwv1xydBbarNcnw=; b=GRJlpd6JQufHvV4vw2gD7A/b/MqU7s5X8IjZ6NCIPrU5+6QnCyVY41czFeFxuCDZHS TM+GeY1JIr+3+GvKa2eMYggc1DMCZ2lp0IVhdqi1cdYQrWHOHY2s2vvOVQel0i36oVr+ 2yii8YLXQEM5K0toFaE7NHdKUiahJA0nAN23U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=AICSO/Y0AV/pq0zUNpHf+iGVUSzWPdwbUGLGuTtVd6f+WCM8bIn60rRlSBhHM4gnQr rO3xo4ZPyGiwvNaZvqrIGKHreBHztwEjLJUSW+D0EPf2EcmCCP0NB4lTRSMDTIhcfjPO 5TpS4UPMqqFe0SCjNYuIXdDi4qfzFci723lBk= Original-Received: by 10.67.25.9 with SMTP id c9mr1406659ugj.29.1218301621225; Sat, 09 Aug 2008 10:07:01 -0700 (PDT) Original-Received: from tux.homenetwork ( [77.197.77.142]) by mx.google.com with ESMTPS id 32sm2020084ugf.51.2008.08.09.10.06.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 09 Aug 2008 10:07:00 -0700 (PDT) In-Reply-To: <489DC909.2080603@gmail.com> (Lennart Borgman's message of "Sat, 09 Aug 2008 18:42:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:56367 Archived-At: "Lennart Borgman (gmail)" writes: > Thierry Volpiatto wrote: >> Python-mode provide a command for indenting that is bind to: >> >> C-c # ==> comment >> C-u C-c # ==> uncomment >> The command is: `py-comment-region' >> >> It is better to comment with that instead of the usual M-; >> because it don't affect indentation after a block of commented code. > > > Do you mean that this is a bug in the support for M-; in phyton-mode? > Or is it a bug in M-; > I don't think it's a bug, it's just better to comment with the proper function in python, especially if there is complex level of indentation (loop followed with other loop and if if if...etc). However M-; work in most cases. So if it's a bug, it come from python-mode, because M-; normally have to be used with python.el (is it working with python.el ?) because it is the normal mode to use in emacs with python even if IMHO python-mode is much better. -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France