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

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