Function: ghostel--confirm-and-prompt

ghostel--confirm-and-prompt is a natively compiled function defined in ghostel.el.

Signature

(ghostel--confirm-and-prompt BUF)

Documentation

Re-check the password heuristic in BUF and open ghostel--prompt-password.

Body of the ghostel-password-prompt-debounce timer scheduled on the rising edge by ghostel--detect-password-prompt. Re-running ghostel--password-prompt-detected-p here is what filters sub-debounce flickers — they cleared ghostel--password-mode-p on the falling edge, so we no-op.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--confirm-and-prompt (buf)
  "Re-check the password heuristic in BUF and open `ghostel--prompt-password'.
Body of the `ghostel-password-prompt-debounce' timer scheduled on
the rising edge by `ghostel--detect-password-prompt'.  Re-running
`ghostel--password-prompt-detected-p' here is what filters sub-debounce
flickers — they cleared `ghostel--password-mode-p' on the falling
edge, so we no-op."
  (when (buffer-live-p buf)
    (with-current-buffer buf
      (setq ghostel--password-confirm-timer nil)
      (when (and ghostel--password-mode-p
                 (ghostel--password-prompt-detected-p))
        (ghostel--prompt-password)))))