1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-22 07:09:47 +00:00

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

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)