summaryrefslogtreecommitdiff
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorIan Johnson <ianprime0509@gmail.com>2017-12-22 16:11:00 +0200
committerEli Zaretskii <eliz@gnu.org>2017-12-22 16:11:00 +0200
commit2b6912c3d1ca99719c9eb6efb5eb1e7986ad280d (patch)
treeec8b638d32a118b156f03882d590114ccf7b421d /lisp/comint.el
parentebe91f6026edf54d5de936d3d6b696d5c76ef705 (diff)
downloademacs-2b6912c3d1ca99719c9eb6efb5eb1e7986ad280d.tar.gz
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
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el4
1 files changed, 2 insertions, 2 deletions
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)