diff options
| author | Stefan Monnier | 2007-05-08 01:35:26 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-05-08 01:35:26 +0000 |
| commit | 11c4b29d3a3c1f3491e0822eb50fc3c285a047d2 (patch) | |
| tree | 847dcead3485c7b0c37a9ea92ee80c0dd5e6a745 | |
| parent | ce55f97ce30848064903b0e6ceab1f7f43c690a1 (diff) | |
| download | emacs-11c4b29d3a3c1f3491e0822eb50fc3c285a047d2.tar.gz emacs-11c4b29d3a3c1f3491e0822eb50fc3c285a047d2.zip | |
(python-guess-indent): Check non-nullness before comparing indent against
the 2..8 interval.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 957e975ded7..be19004e954 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-05-08 David Reitter <david.reitter@gmail.com> | ||
| 2 | |||
| 3 | * progmodes/python.el (python-guess-indent): Check non-nullness | ||
| 4 | before comparing indent against the 2..8 interval. | ||
| 5 | |||
| 1 | 2007-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2007-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * term/mac-win.el (mac-ts-unicode-for-key-event): Check if text is | 8 | * term/mac-win.el (mac-ts-unicode-for-key-event): Check if text is |
| @@ -27,9 +32,9 @@ | |||
| 27 | 32 | ||
| 28 | 2007-04-29 Davis Herring <herring@lanl.gov> | 33 | 2007-04-29 Davis Herring <herring@lanl.gov> |
| 29 | 34 | ||
| 30 | * calendar/timeclock.el (timeclock-in): Fix non-interactive | 35 | * calendar/timeclock.el (timeclock-in): Fix non-interactive |
| 31 | workday specifications. | 36 | workday specifications. |
| 32 | (timeclock-log): Don't kill the log buffer if it already existed. | 37 | (timeclock-log): Don't kill the log buffer if it already existed. |
| 33 | 38 | ||
| 34 | 2007-04-29 Richard Stallman <rms@gnu.org> | 39 | 2007-04-29 Richard Stallman <rms@gnu.org> |
| 35 | 40 | ||
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index e57c7e639c9..17d30e0d972 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -461,7 +461,7 @@ Set `python-indent' locally to the value guessed." | |||
| 461 | (let ((initial (current-indentation))) | 461 | (let ((initial (current-indentation))) |
| 462 | (if (zerop (python-next-statement)) | 462 | (if (zerop (python-next-statement)) |
| 463 | (setq indent (- (current-indentation) initial))) | 463 | (setq indent (- (current-indentation) initial))) |
| 464 | (if (and (>= indent 2) (<= indent 8)) ; sanity check | 464 | (if (and indent (>= indent 2) (<= indent 8)) ; sanity check |
| 465 | (setq done t)))))) | 465 | (setq done t)))))) |
| 466 | (when done | 466 | (when done |
| 467 | (when (/= indent (default-value 'python-indent)) | 467 | (when (/= indent (default-value 'python-indent)) |