From 2464210ee05d695aa96e057902735c068e49790b Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 6 Oct 2000 04:54:57 +0000 Subject: [PATCH] (comint-watch-for-password-prompt): Use STRING as a prompt. --- lisp/comint.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2