From 5213e0f704ca46bdbc49ca27a09da88a6450bd1f Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Sat, 23 Nov 2013 16:15:45 +0100 Subject: [PATCH] org-crypt: fix 3e87d5893d MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/org-crypt.el: Declare `epg-context´. (org-encrypt-string): Correct indentation. --- lisp/org-crypt.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el index 1fbcf8e42..2024144fa 100644 --- a/lisp/org-crypt.el +++ b/lisp/org-crypt.el @@ -73,6 +73,8 @@ compress-algorithm)) (declare-function epg-encrypt-string "epg" (context plain recipients &optional sign always-trust)) +(defvar epg-context) + (defgroup org-crypt nil "Org Crypt." @@ -161,7 +163,7 @@ See `org-crypt-disable-auto-save'." (if (and (string= crypt-key (get-text-property 0 'org-crypt-key str)) (string= (sha1 str) (get-text-property 0 'org-crypt-checksum str))) (get-text-property 0 'org-crypt-text str) - (set (make-local-variable 'epg-context) (epg-make-context nil t t)) + (set (make-local-variable 'epg-context) (epg-make-context nil t t)) (epg-encrypt-string epg-context str (epg-list-keys epg-context crypt-key)))) (defun org-encrypt-entry ()