def f(): ''' docstring ''' With point in column zero on the line after the closing triple-quote, py-indent-line fails with Wrong type argument: integerp, t.
,---- | I see there's a cerain amount of TQS stuff in the launchpad bugs already | -- someone let me know if it would be helpful to file this as a new bug, | and I'll do it. `---- I had a quick look but it wasn't clear to me how to fix it. What happens is, here, ;; if we landed inside a string, go to the beginning of that ;; string. this handles triple quoted, multi-line spanning ;; strings. (py-goto-beginning-of-tqs (nth 3 (parse-partial-sexp bod (point)))) parse-partial-sexp returns t as the 4th element, instead of a string delimiter. I see that this is documented behavior for parse-partial-sexp, but I wasn't sure how to alter things to deal with that t. Dan _______________________________________________ Python-mode mailing list Python-mode@python.org http://mail.python.org/mailman/listinfo/python-mode