From f9471190dcdeb216c76771bea4483989291b1bbd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:10 -0300 Subject: [PATCH] Better indentation handling when inside parens. --- lisp/progmodes/python.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index b6bb825fc1a..dc9e091603b 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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))) -- 2.39.5