]> git.eshelyaron.com Git - emacs.git/commitdiff
Better indentation handling when inside parens.
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:10 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:10 +0000 (00:03 -0300)
lisp/progmodes/python.el

index b6bb825fc1aa351fff5cb14cd25b4d3bc785f46e..dc9e091603b51a5290b9fac001a74c95ed21c998 100644 (file)
@@ -670,9 +670,9 @@ START is the buffer position where the sexp starts."
           ('inside-paren
            (or (save-excursion
                  (forward-comment 1)
-                 (looking-at (regexp-opt '(")" "]" "}")))
-                 (forward-char 1)
-                 (when (not (python-info-ppss-context 'paren))
+                 (when (and (looking-at (regexp-opt '(")" "]" "}")))
+                            (not (forward-char 1))
+                            (not (python-info-ppss-context 'paren)))
                    (goto-char context-start)
                    (back-to-indentation)
                    (current-column)))