>>732
これでいける?
(add-hook 'comint-output-filter-functions
'comint-watch-for-password-prompt)