Function: pgg-sign
pgg-sign is an interactive and byte-compiled function defined in
pgg.el.gz.
Signature
(pgg-sign &optional CLEARTEXT START END PASSPHRASE)
Documentation
Sign the current buffer.
If the optional argument CLEARTEXT is non-nil, it does not create a detached signature.
If optional arguments START and END are specified, only sign data within the region.
If this function is called interactively, CLEARTEXT is enabled and the output is displayed.
If optional PASSPHRASE is not specified, it will be obtained from the passphrase cache or user.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/pgg.el.gz
;;;###autoload
(defun pgg-sign (&optional cleartext start end passphrase)
"Sign the current buffer.
If the optional argument CLEARTEXT is non-nil, it does not create a
detached signature.
If optional arguments START and END are specified, only sign data
within the region.
If this function is called interactively, CLEARTEXT is enabled
and the output is displayed.
If optional PASSPHRASE is not specified, it will be obtained from the
passphrase cache or user."
(interactive "")
(let* ((start (or start (point-min)))
(end (or end (point-max)))
(status (pgg-sign-region start end
(or (called-interactively-p 'interactive)
cleartext)
passphrase)))
(when (called-interactively-p 'interactive)
(pgg-display-output-buffer start end status))
status))