Function: pgg-encrypt-region
pgg-encrypt-region is an autoloaded, interactive and byte-compiled
function defined in pgg.el.gz.
Signature
(pgg-encrypt-region START END RCPTS &optional SIGN PASSPHRASE)
Documentation
Encrypt the current region between START and END for RCPTS.
If optional argument SIGN is non-nil, do a combined sign and encrypt.
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
;;; @ interface functions
;;;
;;;###autoload
(defun pgg-encrypt-region (start end rcpts &optional sign passphrase)
"Encrypt the current region between START and END for RCPTS.
If optional argument SIGN is non-nil, do a combined sign and encrypt.
If optional PASSPHRASE is not specified, it will be obtained from the
passphrase cache or user."
(interactive
(list (region-beginning)(region-end)
(split-string (read-string "Recipients: ") "[ \t,]+")))
(let ((status
(pgg-save-coding-system start end
(pgg-invoke "encrypt-region" (or pgg-scheme pgg-default-scheme)
(point-min) (point-max) rcpts sign passphrase))))
(when (called-interactively-p 'interactive)
(pgg-display-output-buffer start end status))
status))