]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix comint-password-prompt-regexp
authorNoam Postavsky <npostavs@gmail.com>
Fri, 17 Aug 2018 10:29:35 +0000 (06:29 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 24 Aug 2018 02:49:04 +0000 (22:49 -0400)
The change from 2017-12-22 "Support French password prompts in shell"
tried to allow nonbreaking space in addition to whitespace syntax
characters around the colon, but used square brackets which cause "\s"
to be interpreted literally rather than as a backslash construct.
* lisp/comint.el (comint-password-prompt-regexp): Use [[:blank:]]
instead, which also has the benefit of not relying on the major mode's
whitespace syntax setting.
* test/lisp/comint-tests.el (comint-testsuite-password-strings):
Update French localized entry to have a space before the colon, as
reported in Bug#29729.

lisp/comint.el
test/lisp/comint-tests.el

index a9c3e47f88e7548380f8c79cd792f7d03fb6c71a..51c7e81e09a7d7408f472dc68e1e6645762ee15e 100644 (file)
@@ -364,7 +364,7 @@ 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  ]*[::៖][\\s  ]*\\'")
+   "\\(?: [[:alpha:]]+ .+\\)?[[:blank:]]*[::៖][[:blank:]]*\\'")
   "Regexp matching prompts for passwords in the inferior process.
 This is used by `comint-watch-for-password-prompt'."
   :version "27.1"
index 64898888ba8a7c43e7e30040c380a8157e5cdc15..366fcc9ad896075bbc3f2c79781731aecb295016 100644 (file)
@@ -38,7 +38,7 @@
     "[sudo] password for user:" ; Ubuntu sudo
     "Password (again):"
     "Enter password:"
-    "Mot de Passe:" ; localized
+    "Mot de Passe :" ; localized (Bug#29729)
     "Passwort:") ; localized
   "List of strings that should match `comint-password-prompt-regexp'.")