Function: epg-edit-key

epg-edit-key is a byte-compiled function defined in epg.el.gz.

Signature

(epg-edit-key CONTEXT KEY EDIT-CALLBACK HANDBACK)

Documentation

Edit KEY in the keyring.

Source Code

;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-edit-key (context key edit-callback handback)
  "Edit KEY in the keyring."
  (unwind-protect
      (progn
	(epg-start-edit-key context key edit-callback handback)
	(epg-wait-for-completion context)
	(let ((errors (epg-context-result-for context 'error)))
	  (if errors
	      (signal 'epg-error
		      (list "Edit key failed"
			    (epg-errors-to-string errors))))))
    (epg-reset context)))