Mercurial > emacs
changeset 32196:219a95f2ef05
(comint-watch-for-password-prompt): Use STRING as a prompt.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 06 Oct 2000 04:54:57 +0000 |
parents | e0870d1a8c33 |
children | b949d342e936 |
files | lisp/comint.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/comint.el Thu Oct 05 23:47:14 2000 +0000 +++ b/lisp/comint.el Fri Oct 06 04:54:57 2000 +0000 @@ -1847,8 +1847,9 @@ `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