From: Miles Bader Date: Fri, 6 Oct 2000 04:54:57 +0000 (+0000) Subject: (comint-watch-for-password-prompt): Use STRING as a prompt. X-Git-Tag: emacs-pretest-21.0.90~1116 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2464210ee05d695aa96e057902735c068e49790b;p=emacs.git (comint-watch-for-password-prompt): Use STRING as a prompt. --- diff --git a/lisp/comint.el b/lisp/comint.el index 8e348797d39..dd440a125ed 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -1847,8 +1847,9 @@ process if STRING contains a password prompt defined by `comint-password-prompt-regexp'. This function could be in the list `comint-output-filter-functions'." - (if (string-match comint-password-prompt-regexp string) - (send-invisible nil))) + (when (string-match comint-password-prompt-regexp string) + (let ((pw (comint-read-noecho string t))) + (send-invisible pw)))) ;; Low-level process communication