Function: pgg-gpg-update-agent
pgg-gpg-update-agent is a byte-compiled function defined in
pgg-gpg.el.gz.
Signature
(pgg-gpg-update-agent)
Documentation
Try to connect to gpg-agent and send UPDATESTARTUPTTY.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/pgg-gpg.el.gz
(defun pgg-gpg-update-agent ()
"Try to connect to gpg-agent and send UPDATESTARTUPTTY."
(if (fboundp 'make-network-process)
(let* ((agent-info (getenv "GPG_AGENT_INFO"))
(socket (and agent-info
(string-match "^\\([^:]*\\)" agent-info)
(match-string 1 agent-info)))
(conn (and socket
(make-network-process :name "gpg-agent-process"
:host 'local :family 'local
:service socket))))
(when (and conn (eq (process-status conn) 'open))
(process-send-string conn "UPDATESTARTUPTTY\n")
(delete-process conn)
t))
;; We can't check, so assume gpg-agent is up.
t))