projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86f1889
)
Better indentation handling when inside parens.
author
Fabián Ezequiel Gallina
<fgallina@cuca>
Thu, 17 May 2012 03:03:10 +0000
(
00:03
-0300)
committer
Fabián Ezequiel Gallina
<fgallina@gnu.org>
Thu, 17 May 2012 03:03:10 +0000
(
00:03
-0300)
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index b6bb825fc1aa351fff5cb14cd25b4d3bc785f46e..dc9e091603b51a5290b9fac001a74c95ed21c998 100644
(file)
--- 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)))