diff options
author | Achim Gratz <Stromeko@Stromeko.DE> | 2013-11-23 16:15:45 +0100 |
---|---|---|
committer | Achim Gratz <Stromeko@Stromeko.DE> | 2013-11-23 16:15:45 +0100 |
commit | 5213e0f704ca46bdbc49ca27a09da88a6450bd1f (patch) | |
tree | d64be97f7e11c5ea89fb79e4a3d7e67079deeebb | |
parent | 9ff70abc14e901ce481cb605c0d572581dd40716 (diff) | |
download | org-mode-5213e0f704ca46bdbc49ca27a09da88a6450bd1f.tar.gz |
org-crypt: fix 3e87d5893d
* lisp/org-crypt.el: Declare `epg-context´.
(org-encrypt-string): Correct indentation.
-rw-r--r-- | lisp/org-crypt.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el index 1fbcf8e..2024144 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 () |