aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-23 07:10:56 +0000
committerGlenn Morris2007-10-23 07:10:56 +0000
commita6151b2c1070058fcdc9cf9021e331c1f563bc1d (patch)
tree9875b507d383f9237ae3a3bf784a5287f86e1016
parentd6bb9d8c180f173991e3bae84a74a9d487e094f8 (diff)
downloademacs-a6151b2c1070058fcdc9cf9021e331c1f563bc1d.tar.gz
emacs-a6151b2c1070058fcdc9cf9021e331c1f563bc1d.zip
Chris Moore <christopher.ian.moore at gmail.com>
(comint-password-prompt-regexp): Handle `[sudo] password'-style prompt.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/comint.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cb4029e1da7..7731ffa3dbf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-10-23 Chris Moore <christopher.ian.moore@gmail.com>
2
3 * comint.el (comint-password-prompt-regexp):
4 Handle `[sudo] password'-style prompt.
5
12007-10-23 Glenn Morris <rgm@gnu.org> 62007-10-23 Glenn Morris <rgm@gnu.org>
2 7
3 * progmodes/f90.el (f90-do-indent, f90-if-indent) 8 * progmodes/f90.el (f90-do-indent, f90-if-indent)
diff --git a/lisp/comint.el b/lisp/comint.el
index 80a42dbdbfa..ed1f38bf1a1 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -334,10 +334,11 @@ This variable is buffer-local."
334;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '. 334;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '.
335;; ssh-add prints a prompt like `Enter passphrase: '. 335;; ssh-add prints a prompt like `Enter passphrase: '.
336;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '. 336;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '.
337;; Ubuntu's sudo prompts like `[sudo] password for user:'
337;; Some implementations of passwd use "Password (again)" as the 2nd prompt. 338;; Some implementations of passwd use "Password (again)" as the 2nd prompt.
338(defcustom comint-password-prompt-regexp 339(defcustom comint-password-prompt-regexp
339 "\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|\ 340 "\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|\
340Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|^\\)\ 341Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)\
341\[Pp]assword\\( (again)\\)?\\|\ 342\[Pp]assword\\( (again)\\)?\\|\
342pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ 343pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\
343\\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'" 344\\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'"