aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-05-03 18:51:41 +0000
committerGlenn Morris2008-05-03 18:51:41 +0000
commita3dd77f7641bcd78a16c45f449fc5342b6c10cca (patch)
tree38acb51dee525d7769680074fb3f41e3d2fe6ed0
parentc6bff69edc9af8d59b806f88e7e0b41c3b0bd33d (diff)
downloademacs-a3dd77f7641bcd78a16c45f449fc5342b6c10cca.tar.gz
emacs-a3dd77f7641bcd78a16c45f449fc5342b6c10cca.zip
Dave Love <fx at gnu.org>
(python-beginning-of-statement): Loop at least once (fixes 2008-02-21 change).
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/progmodes/python.el9
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5f799a25b32..d679b5867a8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-05-03 Dave Love <fx@gnu.org>
2
3 * progmodes/python.el (python-beginning-of-statement):
4 Loop at least once (fixes 2008-02-21 change).
5
12008-05-03 Eli Zaretskii <eliz@gnu.org> 62008-05-03 Eli Zaretskii <eliz@gnu.org>
2 7
3 * ls-lisp.el (ls-lisp-insert-directory): Use `string-width' 8 * ls-lisp.el (ls-lisp-insert-directory): Use `string-width'
@@ -5,10 +10,10 @@
5 10
62008-05-03 Eric S. Raymond <esr@snark.thyrsus.com> 112008-05-03 Eric S. Raymond <esr@snark.thyrsus.com>
7 12
8 * vc-dispatcher.el: New file, separates out the UI and command 13 * vc-dispatcher.el: New file, separates out the UI and command
9 execution machinery from VCS-specific logic left in vc.el. The 14 execution machinery from VCS-specific logic left in vc.el. The
10 separation is not yet completely clean, but it's a good start. 15 separation is not yet completely clean, but it's a good start.
11 * vc.el: This file is about 1700 lines shorter now. Obsolete 16 * vc.el: This file is about 1700 lines shorter now. Obsolete
12 logentry-check is removed from the backend API. 17 logentry-check is removed from the backend API.
13 * vc-sccs.el: Obsolete vc-sccs-logentry-check removed. This was 18 * vc-sccs.el: Obsolete vc-sccs-logentry-check removed. This was
14 was the only implementation of the logentry-check method, and 19 was the only implementation of the logentry-check method, and
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 15dc73daba4..36bc1178288 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -977,9 +977,11 @@ Accounts for continuation lines, multi-line strings, and
977multi-line bracketed expressions." 977multi-line bracketed expressions."
978 (beginning-of-line) 978 (beginning-of-line)
979 (python-beginning-of-string) 979 (python-beginning-of-string)
980 (let ((point (point))) 980 (let (point)
981 (while (and (python-continuation-line-p) 981 (while (and (python-continuation-line-p)
982 (> point (setq point (point)))) 982 (if point
983 (< (point) point)
984 t))
983 (beginning-of-line) 985 (beginning-of-line)
984 (if (python-backslash-continuation-line-p) 986 (if (python-backslash-continuation-line-p)
985 (progn 987 (progn
@@ -987,7 +989,8 @@ multi-line bracketed expressions."
987 (while (python-backslash-continuation-line-p) 989 (while (python-backslash-continuation-line-p)
988 (forward-line -1))) 990 (forward-line -1)))
989 (python-beginning-of-string) 991 (python-beginning-of-string)
990 (python-skip-out)))) 992 (python-skip-out))
993 (setq point (point))))
991 (back-to-indentation)) 994 (back-to-indentation))
992 995
993(defun python-skip-out (&optional forward syntax) 996(defun python-skip-out (&optional forward syntax)