Stefan Monnier writes: > unconditionally call *-watch-for-password-prompt right at the place > where you added the "run-hook" (actually, only one of the two places), Here is a modified version of Tino's patch which uses comint.el and does the above. Another difference is that we call term-watch-for-password-prompt on the decoded-substring (I believe that's required to match localized non-ASCII prompts correctly). I wasn't able to reproduce the problems described in #74 with any version of the patch (maybe it's dependent on timing?), so I'm not sure how much of a concern that is.