From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Org-mode and GPG (EasyPG) Date: Thu, 23 Jul 2009 23:56:35 +0100 Message-ID: <87hbx3t3do.wl%ucecesf@ucl.ac.uk> References: <878wifjjx8.wl%ks@mocker.org> <87bpnb2g20.wl%ucecesf@ucl.ac.uk> <4a68e68c.0c58560a.7f9e.14d2@mx.google.com> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU7Da-0005wu-Fm for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 18:56:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU7DV-0005tZ-UF for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 18:56:53 -0400 Received: from [199.232.76.173] (port=37058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU7DV-0005tP-D7 for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 18:56:49 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:36751) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MU7DU-0003SH-Vp for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 18:56:49 -0400 In-Reply-To: <4a68e68c.0c58560a.7f9e.14d2@mx.google.com> 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: Richard Riley Cc: org-mode At Fri, 24 Jul 2009 00:39:07 +0200, Richard Riley wrote: > Eric S Fraga writes: > > 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) > > `---- >=20 > I have the cache setting above plus >=20 > ,---- > | (setenv "GPG_AGENT_INFO" nil) > `---- >=20 > Which means emacs prompts you for the pass. I also have the following at > the top of the org (gpg extension) file fwiw: >=20 > ,---- > | -*- mode: org -*- -*- epa-file-encrypt-to: ("rgr@richardriley.net") -*- > `---- >=20 > and I dont call epa-file. >=20 > Works fine for me with emacs-snapshot on Debian Lenny. Very strange. I did also have the file settings you have (obviously with my pgp ident, not yours ;-). I've removed the epa-file-enable and have included the setenv line you have but I still get the same error as before. The backtrace on error doesn't tell me anything interesting, unfortunately: ,---- | Debugger entered--Lisp error: (file-error "Opening output file" integer-o= r-marker-p nil) | signal(file-error ("Opening output file" integer-or-marker-p nil)) | byte-code("=C4=08 \"=89=12=83=0D=00\n=C5=A1=88=C6=C7=C8=0BAB\"=87" [fil= e epa-file-passphrase-alist entry error assoc nil signal file-error "Openin= g output file"] 4) | epa-file-write-region(nil nil "/home/ucecesf/s/personal/private.org.gpg= " nil t) | apply(epa-file-write-region (nil nil "/home/ucecesf/s/personal/private.= org.gpg" nil t)) | epa-file-handler(write-region nil nil "/home/ucecesf/s/personal/private= .org.gpg" nil t) | write-region(nil nil "/home/ucecesf/s/personal/private.org.gpg" nil t "= ~/synced/personal/private.org.gpg") | basic-save-buffer-2() | basic-save-buffer-1() | basic-save-buffer() | save-buffer(1) | call-interactively(save-buffer nil nil) `---- Thanks, eric