diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:02:56 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:02:56 -0300 |
| commit | 19b122e44ec87cb5e19247049b1088f60f6a72ff (patch) | |
| tree | 8a712ed7d2bf35f45920b8ad350b2be3c23a2535 /lisp/progmodes/python.el | |
| parent | 69bab1deb3e467716f5ca0d80200563b46ebc89c (diff) | |
| download | emacs-19b122e44ec87cb5e19247049b1088f60f6a72ff.tar.gz emacs-19b122e44ec87cb5e19247049b1088f60f6a72ff.zip | |
Do not indent at the beginning of buffer fix
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 3 insertions, 1 deletions
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." | |||
| 453 | (cons | 453 | (cons |
| 454 | (cond | 454 | (cond |
| 455 | ;; Beginning of buffer | 455 | ;; Beginning of buffer |
| 456 | ((bobp) | 456 | ((save-excursion |
| 457 | (goto-char (line-beginning-position)) | ||
| 458 | (bobp)) | ||
| 457 | 'no-indent) | 459 | 'no-indent) |
| 458 | ;; Inside a paren | 460 | ;; Inside a paren |
| 459 | ((setq start (nth 1 ppss)) | 461 | ((setq start (nth 1 ppss)) |