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:19:00 +0200 Message-ID: <87r68yumwr.fsf@tux.homenetwork> References: <87proi6tdp.fsf@tux.homenetwork> <489DC909.2080603@gmail.com> <87ljz66ry2.fsf@tux.homenetwork> <489DCFBE.3000807@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218302546 22278 80.91.229.12 (9 Aug 2008 17:22:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2008 17:22:26 +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:23:17 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 1KRs9s-00059d-QA for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Aug 2008 19:23:17 +0200 Original-Received: from localhost ([127.0.0.1]:48916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRs8w-00042M-Mr for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Aug 2008 13:22:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRs8d-000423-Cz for help-gnu-emacs@gnu.org; Sat, 09 Aug 2008 13:21:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRs8b-00041p-IQ for help-gnu-emacs@gnu.org; Sat, 09 Aug 2008 13:21:58 -0400 Original-Received: from [199.232.76.173] (port=57624 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRs8b-00041i-9W for help-gnu-emacs@gnu.org; Sat, 09 Aug 2008 13:21:57 -0400 Original-Received: from ik-out-1112.google.com ([66.249.90.181]:47603) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRs8a-000451-RR for help-gnu-emacs@gnu.org; Sat, 09 Aug 2008 13:21:57 -0400 Original-Received: by ik-out-1112.google.com with SMTP id c21so1534240ika.2 for ; Sat, 09 Aug 2008 10:21:55 -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=a39SHYu7L3GaXglHRkV+NlUx1mLmCqY1LE87vMu97N0=; b=B5jPn+1iuQZOb6awSZPS0c4U/v1f3otfJf6vx5NXwKe7FPzOZWaa0RKXzlD02zBaSB 1nADjjlLNVGKEFQ2oxZ6lQR/ypRr3puiBJfn7/DGIFHbZuWiShVqPJy/BkTRbxyzWre4 BcmmWFUdTQM5G0enQQ2hkvawuF2sH2B/p8BEA= 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=Y7RDxkG1RAQRNz7YI/MVptYSAcmpVbU62AzR1BVWvLXjAZcYnXfFEZcVr6SlD446eX VA+yefIVLM6nePoHD8BLtS9SzuAHX52NNrkPTsed3J6IgVys12i/6yplaTNZIeD2+8IX IvRcbBoJfg6UBHcNfE7Udc6asFritUtCxJZ28= Original-Received: by 10.210.28.6 with SMTP id b6mr7134469ebb.121.1218302515773; Sat, 09 Aug 2008 10:21:55 -0700 (PDT) Original-Received: from tux.homenetwork ( [77.197.77.142]) by mx.google.com with ESMTPS id c22sm5415227ika.1.2008.08.09.10.21.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 09 Aug 2008 10:21:55 -0700 (PDT) In-Reply-To: <489DCFBE.3000807@gmail.com> (Lennart Borgman's message of "Sat, 09 Aug 2008 19:11:26 +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:56369 Archived-At: "Lennart Borgman (gmail)" writes: > Thierry Volpiatto wrote: >> "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). > > But isn't there a bug somewhere if M-; does not do the right thing? Well, if emacs is meant to use python with python.el and it is working fine with it, it is not a bug, but if M-; don't work properly with python.el, yes, it is a bug! I don't know how emacs is working actually with python.el because i don't use it. >> 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