[Python-checkins] python/dist/src/Misc python-mode.el,4.21,4.22
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Thu, 23 May 2002 12:42:18 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv10466
Modified Files:
python-mode.el
Log Message:
(py-goto-statement-below): Watch out for landing in a triple quoted
string with text in column zero. Skip that stuff when looking for the
"first statement following the statement containing point".
Index: python-mode.el
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/python-mode.el,v
retrieving revision 4.21
retrieving revision 4.22
diff -C2 -d -r4.21 -r4.22
*** python-mode.el 12 May 2002 17:37:46 -0000 4.21
--- python-mode.el 23 May 2002 19:42:16 -0000 4.22
***************
*** 2605,2610 ****
(setq last-pos (point)) ; always true -- side effect
(py-goto-statement-below)
! (> (current-indentation) initial-indent))
! nil))
;; else plain code line; stop at next blank line, or stmt or
--- 2605,2610 ----
(setq last-pos (point)) ; always true -- side effect
(py-goto-statement-below)
! (> (current-indentation) initial-indent)
! )))
;; else plain code line; stop at next blank line, or stmt or
***************
*** 3342,3346 ****
(py-goto-beyond-final-line)
(while (and
! (looking-at py-blank-or-comment-re)
(not (eobp)))
(forward-line 1))
--- 3342,3347 ----
(py-goto-beyond-final-line)
(while (and
! (or (looking-at py-blank-or-comment-re)
! (py-in-literal))
(not (eobp)))
(forward-line 1))