Function: epg-reset

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

Signature

(epg-reset CONTEXT)

Documentation

Reset the CONTEXT.

Source Code

;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-reset (context)
  "Reset the CONTEXT."
  (if (and (epg-context-process context)
	   (buffer-live-p (process-buffer (epg-context-process context))))
      (kill-buffer (process-buffer (epg-context-process context))))
  (if (buffer-live-p (epg-context-error-buffer context))
      (kill-buffer (epg-context-error-buffer context)))
  (setf (epg-context-process context) nil)
  (setf (epg-context-edit-callback context) nil))