diff options
| author | Glenn Morris | 2010-10-23 12:56:57 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-23 12:56:57 -0700 |
| commit | 7aa93795cbf073ff3b4a20639ff2a4e34d9716e5 (patch) | |
| tree | 2aa08fa474654ee0cd119f4be1f4a9fb785a3fc4 | |
| parent | 41f592d1b53b2667a9bdf3fc6ce13849eea36b34 (diff) | |
| download | emacs-7aa93795cbf073ff3b4a20639ff2a4e34d9716e5.tar.gz emacs-7aa93795cbf073ff3b4a20639ff2a4e34d9716e5.zip | |
* lisp/comint.el (comint-password-prompt-regexp): Make it less vague.
Bump custom version.
The initial regexp-opt was bracketed by \\( \\)?, so it might as well
have not been there at all. This change makes it non-optional, and
adds back "^". Hopefully the behaviour is now closer to that of emacs-23,
before it was re-written in http://debbugs.gnu.org/2817.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/comint.el | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b8ec5b56933..2a0281bf595 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-10-23 Glenn Morris <rgm@gnu.org> | 1 | 2010-10-23 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * comint.el (comint-password-prompt-regexp): Make it less vague. | ||
| 4 | Bump version. | ||
| 5 | |||
| 3 | * help-fns.el (doc-file-to-man, doc-file-to-info): New commands. | 6 | * help-fns.el (doc-file-to-man, doc-file-to-info): New commands. |
| 4 | 7 | ||
| 5 | * help.el (finder-by-keyword): Remove unnecessary autoload. | 8 | * help.el (finder-by-keyword): Remove unnecessary autoload. |
diff --git a/lisp/comint.el b/lisp/comint.el index f9346f64c1f..0eee4128a2b 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -339,13 +339,15 @@ This variable is buffer-local." | |||
| 339 | ;; Ubuntu's sudo prompts like `[sudo] password for user:' | 339 | ;; Ubuntu's sudo prompts like `[sudo] password for user:' |
| 340 | ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. | 340 | ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. |
| 341 | ;; Something called "perforce" uses "Enter password:". | 341 | ;; Something called "perforce" uses "Enter password:". |
| 342 | ;; See M-x comint-testsuite--test-comint-password-prompt-regexp. | ||
| 342 | (defcustom comint-password-prompt-regexp | 343 | (defcustom comint-password-prompt-regexp |
| 343 | (concat | 344 | (concat |
| 344 | "\\(" | 345 | "\\(^ *\\|" |
| 345 | (regexp-opt | 346 | (regexp-opt |
| 346 | '("Enter" "Enter same" "Old" "old" "New" "new" "'s" "login" | 347 | '("Enter" "enter" "Enter same" "enter same" "Enter the" "enter the" |
| 347 | "Kerberos" "CVS" "UNIX" " SMB" "LDAP" "[sudo]" "Repeat" "Bad")) | 348 | "Old" "old" "New" "new" "'s" "login" |
| 348 | " +\\)?" | 349 | "Kerberos" "CVS" "UNIX" " SMB" "LDAP" "[sudo]" "Repeat" "Bad") t) |
| 350 | " +\\)" | ||
| 349 | (regexp-opt | 351 | (regexp-opt |
| 350 | '("password" "Password" "passphrase" "Passphrase" | 352 | '("password" "Password" "passphrase" "Passphrase" |
| 351 | "pass phrase" "Pass phrase")) | 353 | "pass phrase" "Pass phrase")) |
| @@ -353,6 +355,7 @@ This variable is buffer-local." | |||
| 353 | \\(?: for [^:]+\\)?:\\s *\\'") | 355 | \\(?: for [^:]+\\)?:\\s *\\'") |
| 354 | "Regexp matching prompts for passwords in the inferior process. | 356 | "Regexp matching prompts for passwords in the inferior process. |
| 355 | This is used by `comint-watch-for-password-prompt'." | 357 | This is used by `comint-watch-for-password-prompt'." |
| 358 | :version "24.1" | ||
| 356 | :type 'regexp | 359 | :type 'regexp |
| 357 | :group 'comint) | 360 | :group 'comint) |
| 358 | 361 | ||
| @@ -3748,5 +3751,4 @@ REGEXP-GROUP is the regular expression group in REGEXP to use." | |||
| 3748 | 3751 | ||
| 3749 | (provide 'comint) | 3752 | (provide 'comint) |
| 3750 | 3753 | ||
| 3751 | ;; arch-tag: 1793314c-09db-40be-9549-9aeae3e75164 | ||
| 3752 | ;;; comint.el ends here | 3754 | ;;; comint.el ends here |