diff options
| author | Glenn Morris | 2007-10-23 07:10:56 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-23 07:10:56 +0000 |
| commit | a6151b2c1070058fcdc9cf9021e331c1f563bc1d (patch) | |
| tree | 9875b507d383f9237ae3a3bf784a5287f86e1016 | |
| parent | d6bb9d8c180f173991e3bae84a74a9d487e094f8 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/comint.el | 3 |
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 @@ | |||
| 1 | 2007-10-23 Chris Moore <christopher.ian.moore@gmail.com> | ||
| 2 | |||
| 3 | * comint.el (comint-password-prompt-regexp): | ||
| 4 | Handle `[sudo] password'-style prompt. | ||
| 5 | |||
| 1 | 2007-10-23 Glenn Morris <rgm@gnu.org> | 6 | 2007-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 \\|\ |
| 340 | Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|^\\)\ | 341 | Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)\ |
| 341 | \[Pp]assword\\( (again)\\)?\\|\ | 342 | \[Pp]assword\\( (again)\\)?\\|\ |
| 342 | pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ | 343 | pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ |
| 343 | \\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'" | 344 | \\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'" |