mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
Merge branch 'emacs-31' of git.savannah.gnu.org:/srv/git/emacs into emacs-31
This commit is contained in:
commit
95ac082d5b
2 changed files with 8 additions and 3 deletions
|
|
@ -801,19 +801,23 @@ The regexp should match at end of buffer."
|
|||
(? "/[fingerprint]") ")?"
|
||||
(* blank))
|
||||
"Regular expression matching all yes/no queries which need to be confirmed.
|
||||
The confirmation should be done with yes or no.
|
||||
The confirmation should be done with \"yes\" or \"no\".
|
||||
The regexp should match at end of buffer.
|
||||
See also `tramp-yn-prompt-regexp'."
|
||||
:type 'regexp)
|
||||
|
||||
(defcustom tramp-yn-prompt-regexp
|
||||
(rx (| (: "Store key in cache? (y/n" (* nonl) ")")
|
||||
"Update cached key? (y/n, Return cancels connection)")
|
||||
"Update cached key? (y/n, Return cancels connection)"
|
||||
;; distrobox.
|
||||
(: "Error: no such container \"" (+ nonl) "\"\n"
|
||||
"Create it now, out of image " (+ nonl) "? [Y/n]:"))
|
||||
(* blank))
|
||||
"Regular expression matching all y/n queries which need to be confirmed.
|
||||
The confirmation should be done with y or n.
|
||||
The confirmation should be done with \"y\" or \"n\".
|
||||
The regexp should match at end of buffer.
|
||||
See also `tramp-yesno-prompt-regexp'."
|
||||
:version "31.1"
|
||||
:type 'regexp)
|
||||
|
||||
;;;###tramp-autoload
|
||||
|
|
|
|||
|
|
@ -2299,6 +2299,7 @@ being the result.")
|
|||
(tramp-default-proxies-alist tramp-default-proxies-alist)
|
||||
(tramp-show-ad-hoc-proxies t))
|
||||
(cl-letf* (((symbol-function #'read-string) #'ignore) ; Suppress password.
|
||||
((symbol-function #'y-or-n-p) #'ignore) ; distrobox.
|
||||
((tramp-file-name-host vec) "example.com.invalid"))
|
||||
(should-error
|
||||
(file-exists-p (tramp-make-tramp-file-name vec))
|
||||
|
|
|
|||
Loading…
Reference in a new issue