comint-password-prompt-regexp tweak
authorGlenn Morris <rgm@gnu.org>
Sat, 18 May 2013 19:38:35 +0000 (12:38 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 18 May 2013 19:38:35 +0000 (12:38 -0700)
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00401.html

* lisp/comint.el (comint-password-prompt-regexp):
Allow "password for XXX" where XXX contains colons (eg https://...).

lisp/ChangeLog
lisp/comint.el

index b4bb56a..d5957fb 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-18  Glenn Morris  <rgm@gnu.org>
+
+       * comint.el (comint-password-prompt-regexp):
+       Allow "password for XXX" where XXX contains colons (eg https://...).
+
 2013-05-18  Leo Liu  <sdl.web@gmail.com>
 
        * progmodes/octave.el (inferior-octave-startup): Use OCTAVE_SRCDIR
index 956e8f8..5680b9a 100644 (file)
@@ -351,7 +351,7 @@ This variable is buffer-local."
     '("password" "Password" "passphrase" "Passphrase"
       "pass phrase" "Pass phrase" "Response"))
    "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\| (again)\\)?\
-\\(?: for [^:]+\\)?:\\s *\\'")
+\\(?: for .+\\)?:\\s *\\'")
   "Regexp matching prompts for passwords in the inferior process.
 This is used by `comint-watch-for-password-prompt'."
   :version "24.1"