aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorMiles Bader2007-05-08 02:07:17 +0000
committerMiles Bader2007-05-08 02:07:17 +0000
commit6e1504ad818d5dae59bdcbac62fbdbf444a989fd (patch)
tree46825e25349335af2886ab7bdd2ed5417ef1c29c /lisp/progmodes/python.el
parent48b8e4a00450bfae2b1617856c90405ade2081fc (diff)
parent11c4b29d3a3c1f3491e0822eb50fc3c285a047d2 (diff)
downloademacs-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.el2
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))