Function: tramp-action-yn
tramp-action-yn is a byte-compiled function defined in tramp.el.gz.
Signature
(tramp-action-yn PROC VEC)
Documentation
Ask the user for confirmation using y-or-n-p.
Send "y" to remote process on confirmation, abort otherwise.
See also tramp-action-yesno.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-action-yn (proc vec)
"Ask the user for confirmation using `y-or-n-p'.
Send \"y\" to remote process on confirmation, abort otherwise.
See also `tramp-action-yesno'."
(save-window-excursion
(pop-to-buffer (tramp-get-connection-buffer vec))
(unless (y-or-n-p (match-string 0))
(kill-process proc)
(throw 'tramp-action 'permission-denied))
(tramp-message
vec 6 "\n%s" (tramp-get-buffer-string (tramp-get-connection-buffer vec)))
(tramp-send-string vec (concat "y" tramp-local-end-of-line)))
t)