Function: epg-context-set-progress-callback

epg-context-set-progress-callback is a byte-compiled function defined in epg.el.gz.

Signature

(epg-context-set-progress-callback CONTEXT PROGRESS-CALLBACK)

Documentation

Set the function which handles progress update.

PROGRESS-CALLBACK is either a function, or a cons-cell whose car is a function and cdr is a callback data.

The function gets six arguments: the context, the operation description, the character to display a progress unit, the current amount done, the total amount to be done, and the callback data (if any).

Source Code

;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-context-set-progress-callback (context
					  progress-callback)
  "Set the function which handles progress update.

PROGRESS-CALLBACK is either a function, or a cons-cell whose
car is a function and cdr is a callback data.

The function gets six arguments: the context, the operation
description, the character to display a progress unit, the
current amount done, the total amount to be done, and the
callback data (if any)."
  (setf (epg-context-progress-callback context)
        (if (functionp progress-callback)
            (list progress-callback)
          progress-callback)))