From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:02:56 +0000 (-0300) Subject: Do not indent at the beginning of buffer fix X-Git-Tag: emacs-24.2.90~1199^2~622 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19b122e44ec87cb5e19247049b1088f60f6a72ff;p=emacs.git Do not indent at the beginning of buffer fix --- 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))