GNU bug report logs - #8797
Incorrect Python Indentation

Previous Next

Package: emacs;

Reported by: Adrian Parker <adrian.l.parker <at> gmail.com>

Date: Fri, 3 Jun 2011 23:03:02 UTC

Severity: normal

Fixed in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 8797 <at> debbugs.gnu.org (full text, mbox):

From: Adrian Parker <adrian.l.parker <at> gmail.com>
To: 8797 <at> debbugs.gnu.org
Subject: Further context
Date: Fri, 3 Jun 2011 22:26:05 -0400
I should have given more context on turbofails' suggestion. Here is
the diff output he provided for me:

-- a/python.el
+++ b/python.el
@@ -678,7 +678,7 @@ Set `python-indent' locally to the value guessed."
 		  ;; level per bracketing level.
 		  (goto-char (1+ open-start))
 		  (python-beginning-of-statement)
-		  (+ (current-indentation) (* (car syntax) python-indent))))
+		  (+ (current-indentation) (* 2 (car syntax) python-indent))))
 	    ;; Otherwise backslash-continued.
 	    (forward-line -1)
 	    (if (python-continuation-line-p)




This bug report was last modified 12 years and 346 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.