aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Johnson2017-12-22 16:11:00 +0200
committerEli Zaretskii2017-12-22 16:11:00 +0200
commit2b6912c3d1ca99719c9eb6efb5eb1e7986ad280d (patch)
treeec8b638d32a118b156f03882d590114ccf7b421d
parentebe91f6026edf54d5de936d3d6b696d5c76ef705 (diff)
downloademacs-2b6912c3d1ca99719c9eb6efb5eb1e7986ad280d.tar.gz
emacs-2b6912c3d1ca99719c9eb6efb5eb1e7986ad280d.zip
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
-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."
364 "\\(?:" (regexp-opt password-word-equivalents) "\\|Response\\)" 364 "\\(?:" (regexp-opt password-word-equivalents) "\\|Response\\)"
365 "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\| (again)\\)?" 365 "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\| (again)\\)?"
366 ;; "[[:alpha:]]" used to be "for", which fails to match non-English. 366 ;; "[[:alpha:]]" used to be "for", which fails to match non-English.
367 "\\(?: [[:alpha:]]+ .+\\)?[::៖]\\s *\\'") 367 "\\(?: [[:alpha:]]+ .+\\)?[\\s  ]*[::៖][\\s  ]*\\'")
368 "Regexp matching prompts for passwords in the inferior process. 368 "Regexp matching prompts for passwords in the inferior process.
369This is used by `comint-watch-for-password-prompt'." 369This is used by `comint-watch-for-password-prompt'."
370 :version "26.1" 370 :version "27.1"
371 :type 'regexp 371 :type 'regexp
372 :group 'comint) 372 :group 'comint)
373 373