diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2021-08-03 22:08:18 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2021-08-03 22:08:18 +0200 |
commit | 80cccd7ff15d254cb412e9939e27a348fbaa0425 (patch) | |
tree | 77d1d4798c264ba80c7a470519ee7b66ac3d1630 /lisp/net/tramp.el | |
parent | 88577aed3a17109bb7b13871f185133641c25e73 (diff) | |
download | emacs-80cccd7ff15d254cb412e9939e27a348fbaa0425.tar.gz emacs-80cccd7ff15d254cb412e9939e27a348fbaa0425.tar.bz2 emacs-80cccd7ff15d254cb412e9939e27a348fbaa0425.zip |
Code cleanup for Tramp's yubikey integration
* lisp/net/tramp-sh.el (tramp-actions-before-shell)
(tramp-actions-copy-out-of-band):
Use `tramp-security-key-confirm-regexp'.
* lisp/net/tramp.el (tramp-security-key-confirm-regexp): Rename from
`tramp-yubikey-regexp'. Adapt docstring.
(tramp-security-key-confirmed-regexp): New defcustom.
(tramp-action-show-and-confirm-message):
Redisplay. Use `tramp-security-key-confirmed-regexp'.
Diffstat (limited to 'lisp/net/tramp.el')
-rw-r--r-- | lisp/net/tramp.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 959a0e74352..21757465fad 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -4691,10 +4691,11 @@ Wait, until the connection buffer changes." (goto-char (point-min)) (tramp-check-for-regexp proc tramp-process-action-regexp) (with-temp-message (replace-regexp-in-string "[\r\n]" "" (match-string 0)) + (redisplay 'force) ;; Hide message in buffer. (narrow-to-region (point-max) (point-max)) ;; Wait for new output. - (tramp-wait-for-regexp proc 30 ".")) + (tramp-wait-for-regexp proc 30 tramp-security-key-confirmed-regexp)) ;; Reenable the timers. (with-timeout-unsuspend stimers))) t) |