Compile org-crypt.el without (require 'epg)

This commit is contained in:
Carsten Dominik 2009-09-17 00:12:15 +01:00
parent 5e40b963cc
commit 296a83dbaa
1 changed files with 11 additions and 1 deletions

View File

@ -66,7 +66,15 @@
;; - Vitaly Ostanin
(require 'org)
(require 'epg)
(declare-function epg-decrypt-string "epg" (context cipher))
(declare-function epg-list-keys "epg" (context &optional name mode))
(declare-function epg-make-context "epg"
(&optional protocol armor textmode include-certs
cipher-algorithm digest-algorithm
compress-algorithm))
(declare-function epg-encrypt-string "epg"
(context plain recipients &optional sign always-trust))
(defgroup org-crypt nil
"Org Crypt"
@ -95,6 +103,7 @@ heading. This can also be overridden in the CRYPTKEY property."
(defun org-encrypt-entry ()
"Encrypt the content of the current headline."
(interactive)
(require 'epg)
(save-excursion
(org-back-to-heading t)
(forward-line)
@ -122,6 +131,7 @@ heading. This can also be overridden in the CRYPTKEY property."
(defun org-decrypt-entry ()
(interactive)
(require 'epg)
(save-excursion
(org-back-to-heading t)
(forward-line)