mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-03 08:30:09 +00:00
(python-guess-indent): Check non-nullness before comparing indent against
the 2..8 interval.
This commit is contained in:
parent
ce55f97ce3
commit
11c4b29d3a
@ -1,3 +1,8 @@
|
||||
2007-05-08 David Reitter <david.reitter@gmail.com>
|
||||
|
||||
* progmodes/python.el (python-guess-indent): Check non-nullness
|
||||
before comparing indent against the 2..8 interval.
|
||||
|
||||
2007-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
|
||||
|
||||
* term/mac-win.el (mac-ts-unicode-for-key-event): Check if text is
|
||||
@ -27,9 +32,9 @@
|
||||
|
||||
2007-04-29 Davis Herring <herring@lanl.gov>
|
||||
|
||||
* 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 <rms@gnu.org>
|
||||
|
||||
|
@ -461,7 +461,7 @@ Set `python-indent' locally to the value guessed."
|
||||
(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))
|
||||
|
Loading…
Reference in New Issue
Block a user