From: David Maslen <david.maslen@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Org Mode List <emacs-orgmode@gnu.org>
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 [thread overview]
Message-ID: <0C24D65A-573A-4359-888E-8DA9C2F138E9@gmail.com> (raw)
In-Reply-To: <87tvz33t3m.fsf@nicolasgoaziou.fr>
Solved.
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.
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 <mail@nicolasgoaziou.fr> wrote:
>
> Hello,
>
> David Maslen <david.maslen@gmail.com> writes:
>
>> In the example below the words “test this” 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.
>
> I cannot reproduce it. The text is properly replaced by encrypted text
> here.
>
> Regards,
>
> --
> Nicolas Goaziou 0x80A93738
next prev parent reply other threads:[~2017-10-14 1:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-05 6:02 Bug: org-encrypt-entry fails [9.1.2 (9.1.2-elpa @ /Users/dmm/.emacs.d/elpa/org-20171004/)] David Maslen
2017-10-12 15:05 ` Nicolas Goaziou
[not found] ` <CAGkBVBGQf=zOuOLXO02yi59QN1aMDKFcDjaus361RbNGKTzSVA@mail.gmail.com>
2017-10-13 16:33 ` Nicolas Goaziou
2017-10-14 1:41 ` David Maslen [this message]
2017-10-14 8:33 ` Solved: " Nicolas Goaziou
2017-10-14 8:48 ` David Maslen
2017-10-15 8:37 ` Nicolas Goaziou
2017-10-15 8:39 ` David Maslen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0C24D65A-573A-4359-888E-8DA9C2F138E9@gmail.com \
--to=david.maslen@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).