From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maslen Subject: Solved: Bug: org-encrypt-entry fails [9.1.2 (9.1.2-elpa @ /Users/dmm/.emacs.d/elpa/org-20171004/)] Date: Sat, 14 Oct 2017 12:41:17 +1100 Message-ID: <0C24D65A-573A-4359-888E-8DA9C2F138E9@gmail.com> References: <87y3og5ru4.fsf@nicolasgoaziou.fr> <87tvz33t3m.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (Mac OS X Mail 11.0 \(3445.1.7\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3BSF-00018V-U6 for emacs-orgmode@gnu.org; Fri, 13 Oct 2017 21:41:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3BSB-0008Kj-8s for emacs-orgmode@gnu.org; Fri, 13 Oct 2017 21:41:32 -0400 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:54511) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3BSB-0008J4-2J for emacs-orgmode@gnu.org; Fri, 13 Oct 2017 21:41:27 -0400 Received: by mail-pf0-x236.google.com with SMTP id n89so4027088pfk.11 for ; Fri, 13 Oct 2017 18:41:24 -0700 (PDT) In-Reply-To: <87tvz33t3m.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Org Mode List Solved.=20 Problem was that in graphical mode I saw no password prompt. Failed = without a useful failure message. Perhaps org-crypt could be improved to catch this situation? Starting emacs in a terminal worked, as the password prompt was in the = originating terminal window. On a Mac, I tended to start emacs from the dock, so no terminal. Solution was to follow the instruction in pinentry.=20 I then added (pinenty-start) to my .emacs init file. No org-encrypt-entry prompts for a password in the minibuffer. pinentry is a built-in package. Status: Built-In. Version: 0.1 Summary: GnuPG Pinentry server implementation Other versions: 0.1 (gnu). This package allows GnuPG passphrase to be prompted through the minibuffer instead of graphical dialog. To use, add "allow-emacs-pinentry" to "~/.gnupg/gpg-agent.conf", reload the configuration with "gpgconf --reload gpg-agent", and start the server with M-x pinentry-start. > On 14 Oct 2017, at 3:33 am, Nicolas Goaziou = wrote: >=20 > Hello, >=20 > David Maslen writes: >=20 >> In the example below the words =E2=80=9Ctest this=E2=80=9D are not = replaced by encrypted >> text. >> My previous experience is that the entire contents of a org = subheading >> structure marked with the :crypt: tag would be encrypted/decrypted by = the >> related org function. >=20 > I cannot reproduce it. The text is properly replaced by encrypted text > here. >=20 > Regards, >=20 > --=20 > Nicolas Goaziou = 0x80A93738