Am Mittwoch, 7. Mai 2008 02:19 schrieben Sie:
>
> Andreas> could someone tell me please, how to check out last
> Andreas> python-mode.el?
>
> Something like this:
>
> svn co
https://python-mode.svn.sourceforge.net/svnroot/python-mode/trunk/python-mode
python-mode
>
> If you'd like checkin privileges, send me your SF id.
I'll look for that for next time.
> There's also a mailing list:
>
Inscribed.
> http://mail.python.org/mailman/listinfo/python-mode
>
> Skip
>
Herewith the patch
Introduced an additional check for being not-in-string:
(not (numberp (nth 3 state)))
Thanks
Andreas Röhler
diff -u -b /old/python-mode.el /new/python-mode.el
--- /old/python-mode.el 2008-05-07 08:05:55.000000000 +0200
+++ /new/python-mode.el 2008-05-08 15:28:35.000000000 +0200
@@ -3522,7 +3522,7 @@
(setq searching nil) ; search is done either way
(setq state (parse-partial-sexp start
(match-beginning 0)))
- (setq answer (not (nth 4 state)))))
+ (setq answer (and (not (numberp (nth 3 state)))(not (nth 4 state))))))
;; search failed: couldn't find another interesting colon
(setq searching nil)))
answer)))
Diff finished. Thu May 8 15:29:02 2008
_______________________________________________
Python-mode mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-mode