From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: Org-mode and GPG (EasyPG) Date: Fri, 24 Jul 2009 00:39:07 +0200 Message-ID: <4a68e68c.0c58560a.7f9e.14d2@mx.google.com> References: <878wifjjx8.wl%ks@mocker.org> <87bpnb2g20.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU6wX-0008M4-4y for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 18:39:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU6wS-0008Ki-Gb for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 18:39:16 -0400 Received: from [199.232.76.173] (port=55905 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU6wS-0008Kd-Bz for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 18:39:12 -0400 Received: from mail-fx0-f216.google.com ([209.85.220.216]:62727) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MU6wR-0000W7-TT for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 18:39:12 -0400 Received: by fxm12 with SMTP id 12so458296fxm.42 for ; Thu, 23 Jul 2009 15:39:10 -0700 (PDT) In-Reply-To: <87bpnb2g20.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 23 Jul 2009 23:24:55 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: org-mode Eric S Fraga writes: > At Thu, 23 Jul 2009 14:09:23 -0500, > Kyle Sexton wrote: >> >> Currently I'm using org-mode with EasyPG and it works great. Files > > Kyle, > > can you tell me exactly how you are doing this? I used to do this > just fine but something broke about 6 months ago and I'm no longer > able to encrypt the file automatically when saving. That is, it > decrypts just fine and I can edit the file but I get an error when > trying to save it: > > ,---- > | byte-code: Opening output file: integer-or-marker-p, nil > `---- > > What settings do you have for EasyPG? All I have are: > > ,---- > | ;; ------------------------------------------ EASYPG > | (require 'epa) > | (epa-file-enable) > | (setq epa-file-cache-passphrase-for-symmetric-encryption t) > `---- I have the cache setting above plus ,---- | (setenv "GPG_AGENT_INFO" nil) `---- Which means emacs prompts you for the pass. I also have the following at the top of the org (gpg extension) file fwiw: ,---- | -*- mode: org -*- -*- epa-file-encrypt-to: ("rgr@richardriley.net") -*- `---- and I dont call epa-file. Works fine for me with emacs-snapshot on Debian Lenny.