From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.devel Subject: Re: [joakim@verona.se: pyhon mode indentation problem] Date: Thu, 15 Jun 2006 18:44:06 +0200 Message-ID: <20060615182656.CC94.SLAWOMIR.NOWACZYK.847@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1150389883 22099 80.91.229.2 (15 Jun 2006 16:44:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2006 16:44:43 +0000 (UTC) Cc: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 15 18:44:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FquxL-000051-2Y for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2006 18:44:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FquxK-0007YZ-HI for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2006 12:44:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FquxA-0007YU-7T for emacs-devel@gnu.org; Thu, 15 Jun 2006 12:44:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fqux7-0007Xd-QM for emacs-devel@gnu.org; Thu, 15 Jun 2006 12:44:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fqux7-0007XA-Jc for emacs-devel@gnu.org; Thu, 15 Jun 2006 12:44:17 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fqv6Y-0002Ci-80 for emacs-devel@gnu.org; Thu, 15 Jun 2006 12:54:02 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.13.6/8.13.6/perf-jw-tr) with ESMTP id k5FGi5Bq029493; Thu, 15 Jun 2006 18:44:05 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.25.02 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55915 Archived-At: On Thu, 15 Jun 2006 11:09:49 -0400 Richard Stallman wrote: #> Maybe someone would like to work on this. This particular thing is, AFAIU, not a bug. Nevertheless, is anybody maintaining python.el? I tried using it once and it seemed rather cumbersome. I am not sure if I have time and/or skills to improve it... but if nobody else is working on it, I might give it a shot. #> the problem is especially obvious on the line marked #1, or #2 Try #> moving the indentation to column 0. Emacs will say "sole #> indentation". I am not sure I understand: If I move the #1 line so that it starts at column 0 (i.e. is not indentated at all) and press TAB, it will indent correctly, with 4 spaces. After that, though, subsequent TABs will result in "sole indentation" message -- this is a feature: TAB in python-mode cycles through all possible (syntactically valid) indentations (of which there is only one in this case). Or did you mean something else by "moving the indentation to column 0"? Similarly, calling 'indent-for-tab-command' (this is what TAB is bound for me in emacs -q) on line #2 indents it properly with 4 spaces (it is indented with 3 in your email). Subsequent TABs give message "sole indentation" -- which it is. What did you expect to happen? -- Best wishes, Slawomir Nowaczyk ( slawomir.nowaczyk.847@student.lu.se ) Never attribute to malice that which can be adequately explained by stupidity.