changeset 94590:b4b1e6b43d64

Dave Love <fx at gnu.org> (python-beginning-of-statement): Loop at least once (fixes 2008-02-21 change).
author Glenn Morris <rgm@gnu.org>
date Sat, 03 May 2008 18:51:19 +0000
parents d97320b13374
children df5ac397c7ea
files lisp/progmodes/python.el
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/python.el	Sat May 03 14:31:55 2008 +0000
+++ b/lisp/progmodes/python.el	Sat May 03 18:51:19 2008 +0000
@@ -977,9 +977,11 @@
 multi-line bracketed expressions."
   (beginning-of-line)
   (python-beginning-of-string)
-  (let ((point (point)))
+  (let (point)
     (while (and (python-continuation-line-p)
-		(> point (setq point (point))))
+		(if point
+		    (< (point) point)
+		  t))
       (beginning-of-line)
       (if (python-backslash-continuation-line-p)
 	  (progn
@@ -987,7 +989,8 @@
 	    (while (python-backslash-continuation-line-p)
 	      (forward-line -1)))
 	(python-beginning-of-string)
-	(python-skip-out))))
+	(python-skip-out))
+      (setq point (point))))
   (back-to-indentation))
 
 (defun python-skip-out (&optional forward syntax)