]> git.eshelyaron.com Git - emacs.git/commitdiff
Broaden comint-password-prompt-regexp
authorGlenn Morris <rgm@gnu.org>
Fri, 28 Apr 2017 20:17:27 +0000 (16:17 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 28 Apr 2017 20:17:27 +0000 (16:17 -0400)
* lisp/comint.el (comint-password-prompt-regexp):
Broaden the regexp, for non-English locales.  (Bug#26698)

lisp/comint.el

index a01ecd3dbf79b4b208f723369e20ce864abe16a1..51b659167d52e4060e21b6d8ae3b52316b8dc2fa 100644 (file)
@@ -362,7 +362,8 @@ This variable is buffer-local."
    " +\\)"
    "\\(?:" (regexp-opt password-word-equivalents) "\\|Response\\)"
    "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\| (again)\\)?"
-   "\\(?: for .+\\)?[::៖]\\s *\\'")
+   ;; "[[:alpha:]]" used to be "for", which fails to match non-English.
+   "\\(?: [[:alpha:]]+ .+\\)?[::៖]\\s *\\'")
   "Regexp matching prompts for passwords in the inferior process.
 This is used by `comint-watch-for-password-prompt'."
   :version "26.1"