Function: pgg-pgp-snarf-keys-region

pgg-pgp-snarf-keys-region is a byte-compiled function defined in pgg-pgp.el.gz.

Signature

(pgg-pgp-snarf-keys-region START END)

Documentation

Add all public keys in region between START and END to the keyring.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/pgg-pgp.el.gz
(defun pgg-pgp-snarf-keys-region (start end)
  "Add all public keys in region between START and END to the keyring."
  (let* ((pgg-pgp-user-id (or pgg-pgp-user-id pgg-default-user-id))
	 (key-file (pgg-make-temp-file "pgg"))
	 (args
	  (concat "+verbose=1 +batchmode +language=us -kaf "
                  (shell-quote-argument key-file))))
    (let ((coding-system-for-write 'raw-text-dos))
      (write-region start end key-file))
    (pgg-pgp-process-region start end nil pgg-pgp-program args)
    (delete-file key-file)
    (pgg-process-when-success nil)))