From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug in python-guess-indent (python-mode) Date: Mon, 07 May 2007 21:35:18 -0400 Message-ID: References: <291DF2F9-69B3-4CF2-927C-E53C6E7EFDA3@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1178588136 30502 80.91.229.12 (8 May 2007 01:35:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 May 2007 01:35:36 +0000 (UTC) Cc: emacs- devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 08 03:35:34 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HlEbu-00039r-RY for ged-emacs-devel@m.gmane.org; Tue, 08 May 2007 03:35:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HlEiw-0006Vd-HQ for ged-emacs-devel@m.gmane.org; Mon, 07 May 2007 21:42:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HlEis-0006T8-Tn for emacs-devel@gnu.org; Mon, 07 May 2007 21:42:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HlEir-0006SG-AS for emacs-devel@gnu.org; Mon, 07 May 2007 21:42:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HlEir-0006SD-5I for emacs-devel@gnu.org; Mon, 07 May 2007 21:42:37 -0400 Original-Received: from tomts13.bellnexxia.net ([209.226.175.34] helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HlEbo-0001Rt-DF for emacs-devel@gnu.org; Mon, 07 May 2007 21:35:20 -0400 Original-Received: from ceviche.home ([74.12.211.172]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070508013519.ZPVI1593.tomts13-srv.bellnexxia.net@ceviche.home> for ; Mon, 7 May 2007 21:35:19 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id A8A0EB54D4; Mon, 7 May 2007 21:35:18 -0400 (EDT) In-Reply-To: <291DF2F9-69B3-4CF2-927C-E53C6E7EFDA3@gmail.com> (David Reitter's message of "Fri\, 20 Apr 2007 18\:13\:00 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:70647 Archived-At: > There is a bug that brings up an `wrong type argument' error in > python-guess-indent' when doing M-x python-mode in situations where there > is little actual indentation in the buffer, such as when the buffer just > contains a line like this: > for line in IN: > A simple fix for the problem is attached. (It will cause `python- > guess-indent' not to set the indentation variable locally in such a case.) Thanks, installed. Stefan