aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-05-17 00:02:55 -0300
committerFabián Ezequiel Gallina2012-05-17 00:02:55 -0300
commit69bab1deb3e467716f5ca0d80200563b46ebc89c (patch)
tree9335fc0ecc5f2ed411f1d7a6e8f737a463270eef /lisp/progmodes/python.el
parentdf700cc99edbf1a51f78a52903cd6a9065121e22 (diff)
downloademacs-69bab1deb3e467716f5ca0d80200563b46ebc89c.tar.gz
emacs-69bab1deb3e467716f5ca0d80200563b46ebc89c.zip
Do not indent at the beginning of buffer
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 250f4812a33..9a55f337996 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -452,6 +452,9 @@ START is the buffer position where the sexp starts."
452 (start)) 452 (start))
453 (cons 453 (cons
454 (cond 454 (cond
455 ;; Beginning of buffer
456 ((bobp)
457 'no-indent)
455 ;; Inside a paren 458 ;; Inside a paren
456 ((setq start (nth 1 ppss)) 459 ((setq start (nth 1 ppss))
457 'inside-paren) 460 'inside-paren)