# HG changeset patch # User Stefan Monnier # Date 1178588126 0 # Node ID 32334cd7302e0bed962cd8d3e9363391ca156e12 # Parent 5d52aaf30988a6605f76493c475543c03f92aecb (python-guess-indent): Check non-nullness before comparing indent against the 2..8 interval. diff -r 5d52aaf30988 -r 32334cd7302e lisp/ChangeLog --- a/lisp/ChangeLog Mon May 07 23:42:38 2007 +0000 +++ b/lisp/ChangeLog Tue May 08 01:35:26 2007 +0000 @@ -1,3 +1,8 @@ +2007-05-08 David Reitter + + * progmodes/python.el (python-guess-indent): Check non-nullness + before comparing indent against the 2..8 interval. + 2007-05-07 YAMAMOTO Mitsuharu * term/mac-win.el (mac-ts-unicode-for-key-event): Check if text is @@ -27,9 +32,9 @@ 2007-04-29 Davis Herring - * calendar/timeclock.el (timeclock-in): Fix non-interactive + * calendar/timeclock.el (timeclock-in): Fix non-interactive workday specifications. - (timeclock-log): Don't kill the log buffer if it already existed. + (timeclock-log): Don't kill the log buffer if it already existed. 2007-04-29 Richard Stallman diff -r 5d52aaf30988 -r 32334cd7302e lisp/progmodes/python.el --- a/lisp/progmodes/python.el Mon May 07 23:42:38 2007 +0000 +++ b/lisp/progmodes/python.el Tue May 08 01:35:26 2007 +0000 @@ -461,7 +461,7 @@ (let ((initial (current-indentation))) (if (zerop (python-next-statement)) (setq indent (- (current-indentation) initial))) - (if (and (>= indent 2) (<= indent 8)) ; sanity check + (if (and indent (>= indent 2) (<= indent 8)) ; sanity check (setq done t)))))) (when done (when (/= indent (default-value 'python-indent))