|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#8797: closed (Incorrect Python Indentation) |
Date: | Mon, 18 Jun 2012 21:40:01 +0000 |
Your message dated Mon, 18 Jun 2012 17:36:11 -0400 with message-id <address@hidden> and subject line Re: bug#8797: Incorrect Python Indentation has caused the debbugs.gnu.org bug report #8797, regarding Incorrect Python Indentation to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 8797: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8797 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: Incorrect Python Indentation Version: Emacs 23.3.1 Date: Fri, 3 Jun 2011 18:41:28 -0400 Steps to reproduce:
- Open a Python file
- Starting in the first column type: def some_func(
- Press ENTER key
- Press TAB key
Expected result:The cursor should be in column 9. Under the "Code lay-out" heading at http://www.python.org/dev/peps/pep-0008/ please see the suggestions regarding continuation lines (note: its a very new change).Actual result:The cursor is in column 5.turbofail in #emacs on Freenode suggested I edit my python.el and:Replace this line:(+ (current-indentation) (* (car syntax) python-indent))))with this line:(+ (current-indentation) (* 2 (car syntax) python-indent))))That fixed the issue using an older version of Emacs at work.Note: Sorry, I'd provide a patch but I'm on windows, and haven't diff or patch installed.
Adrian Parker
--- End Message ---
--- Begin Message ---Subject: Re: bug#8797: Incorrect Python Indentation Date: Mon, 18 Jun 2012 17:36:11 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Version: 24.2 Thanks for the report. The Emacs trunk has a new python.el, and it seems your problem is fixed there. This should appear in Emacs 24.2.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |