diff options
| author | Miles Bader | 2007-05-08 02:07:17 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-05-08 02:07:17 +0000 |
| commit | 6e1504ad818d5dae59bdcbac62fbdbf444a989fd (patch) | |
| tree | 46825e25349335af2886ab7bdd2ed5417ef1c29c /lisp/progmodes/python.el | |
| parent | 48b8e4a00450bfae2b1617856c90405ade2081fc (diff) | |
| parent | 11c4b29d3a3c1f3491e0822eb50fc3c285a047d2 (diff) | |
| download | emacs-6e1504ad818d5dae59bdcbac62fbdbf444a989fd.tar.gz emacs-6e1504ad818d5dae59bdcbac62fbdbf444a989fd.zip | |
Merge from emacs--rel--22
Patches applied:
* emacs--rel--22 (patch 11)
- Update from CVS
2007-05-08 David Reitter <david.reitter@gmail.com>
* lisp/progmodes/python.el (python-guess-indent): Check non-nullness
before comparing indent against the 2..8 interval.
2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
* src/editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup
(YAILOM)
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-736
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |