From: Ian Johnson Date: Fri, 22 Dec 2017 14:11:00 +0000 (+0200) Subject: Support French password prompts in shell X-Git-Tag: emacs-27.0.90~5978 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2b6912c3d1ca99719c9eb6efb5eb1e7986ad280d;p=emacs.git Support French password prompts in shell French punctuation rules require a space (preferably non-breaking) before the colon. * lisp/comint.el (comint-password-prompt-regexp): Support spaces (including non-breaking spaces) before and after password prompt colon. (Bug#29729) Copyright-paperwork-exempt: yes --- diff --git a/lisp/comint.el b/lisp/comint.el index 5ee4e48d636..430e83888c2 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -364,10 +364,10 @@ This variable is buffer-local." "\\(?:" (regexp-opt password-word-equivalents) "\\|Response\\)" "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\| (again)\\)?" ;; "[[:alpha:]]" used to be "for", which fails to match non-English. - "\\(?: [[:alpha:]]+ .+\\)?[::៖]\\s *\\'") + "\\(?: [[:alpha:]]+ .+\\)?[\\s  ]*[::៖][\\s  ]*\\'") "Regexp matching prompts for passwords in the inferior process. This is used by `comint-watch-for-password-prompt'." - :version "26.1" + :version "27.1" :type 'regexp :group 'comint)