From 19b122e44ec87cb5e19247049b1088f60f6a72ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:02:56 -0300 Subject: [PATCH] Do not indent at the beginning of buffer fix --- lisp/progmodes/python.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9a55f337996..3f363f960ed 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -453,7 +453,9 @@ START is the buffer position where the sexp starts." (cons (cond ;; Beginning of buffer - ((bobp) + ((save-excursion + (goto-char (line-beginning-position)) + (bobp)) 'no-indent) ;; Inside a paren ((setq start (nth 1 ppss)) -- 2.39.2