]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not indent at the beginning of buffer fix
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:02:56 +0000 (00:02 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:02:56 +0000 (00:02 -0300)
lisp/progmodes/python.el

index 9a55f337996b2d89b24511582e8bbcaecd18c95d..3f363f960edcb3b8c7e7692035b0196c4c6117ee 100644 (file)
@@ -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))