From 6a3f331565322b43c41fdf67c6d2dc3feac8cc1c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 28 Apr 2017 16:17:27 -0400 Subject: [PATCH] Broaden comint-password-prompt-regexp * lisp/comint.el (comint-password-prompt-regexp): Broaden the regexp, for non-English locales. (Bug#26698) --- lisp/comint.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/comint.el b/lisp/comint.el index a01ecd3dbf7..51b659167d5 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -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" -- 2.39.5