From 69bab1deb3e467716f5ca0d80200563b46ebc89c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:02:55 -0300 Subject: [PATCH] Do not indent at the beginning of buffer --- lisp/progmodes/python.el | 3 +++ 1 file changed, 3 insertions(+) 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." (start)) (cons (cond + ;; Beginning of buffer + ((bobp) + 'no-indent) ;; Inside a paren ((setq start (nth 1 ppss)) 'inside-paren) -- 2.39.2