summaryrefslogtreecommitdiff
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-09-27 08:15:24 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-09-27 08:15:24 +0200
commit00011c0ad28cdf1516c854e5fe088a2681aa641c (patch)
tree914a2c9b25f5a83a73a272c8ae6e0f2e950b62d6 /lisp/comint.el
parentbec88ecc82fd6154351a22b67315d9e0b358c046 (diff)
downloademacs-00011c0ad28cdf1516c854e5fe088a2681aa641c.tar.gz
emacs-00011c0ad28cdf1516c854e5fe088a2681aa641c.tar.bz2
emacs-00011c0ad28cdf1516c854e5fe088a2681aa641c.zip
Make comint understand the ccrypt password phrases
* lisp/comint.el (comint-password-prompt-regexp): Add the ccrypt confirmation phrase (bug#50837). * lisp/international/mule-conf.el (password-word-equivalents): Add the ccrypt phrases.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 26aa5547a31..1e5b990c77a 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -382,7 +382,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:]]+ .+\\)?[[:blank:]]*[::៖][[:space:]]*\\'")
+ "\\(?: [[:alpha:]]+ .+\\)?[[:blank:]]*[::៖][[:space:]]*\\'"
+ ;; The ccrypt encryption dialogue doesn't end with a colon, so
+ ;; treat it specially.
+ "\\|^Enter encryption key: (repeat) *\\'")
"Regexp matching prompts for passwords in the inferior process.
This is used by `comint-watch-for-password-prompt'."
:version "28.1"