emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-reveal (gpg crypt) and auto saving
@ 2010-09-10  9:26 Richard Riley
  2010-09-10  9:59 ` Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Riley @ 2010-09-10  9:26 UTC (permalink / raw)
  To: emacs-orgmode


I just opened an org file which has some CRYPT tagged items. When I
org-reveal them (C-c C-r) they are properly decrypted and visible for a
second or two but something is triggering a buffer save which then
causes the "revealed item" to vanish back into gpg haze once more.

What might be triggering this auto-save? I grepped my code for org-save
but nothing came up.

Anyone else using this please confirm it does or doesn't happen to you!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: org-reveal (gpg crypt) and auto saving
  2010-09-10  9:26 org-reveal (gpg crypt) and auto saving Richard Riley
@ 2010-09-10  9:59 ` Eric Abrahamsen
  2010-09-10 10:18   ` Richard Riley
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2010-09-10  9:59 UTC (permalink / raw)
  To: emacs-orgmode

On Fri, Sep 10 2010, Richard Riley wrote:

> I just opened an org file which has some CRYPT tagged items. When I
> org-reveal them (C-c C-r) they are properly decrypted and visible for a
> second or two but something is triggering a buffer save which then
> causes the "revealed item" to vanish back into gpg haze once more.
>
> What might be triggering this auto-save? I grepped my code for org-save
> but nothing came up.
>
> Anyone else using this please confirm it does or doesn't happen to
> you!

Well, this doesn't happen to me, but that's because I use
org-decrypt-entry (bound to C-c C-/ at my house) rather than org-reveal.
That goes entry by entry, and once they're decrypted, they stay
decrypted until I explicitly save the buffer. Maybe you could try that?

And if the gods are listening: wouldn't it be nice if
org-decrypt-entries (plural) only asked for your passphrase once for a
whole buffer, when multiple individual entries were encrypted with the
same key? Would that be possible?

E

>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: org-reveal (gpg crypt) and auto saving
  2010-09-10  9:59 ` Eric Abrahamsen
@ 2010-09-10 10:18   ` Richard Riley
  2010-09-10 10:26     ` Richard Riley
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Riley @ 2010-09-10 10:18 UTC (permalink / raw)
  To: emacs-orgmode

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> On Fri, Sep 10 2010, Richard Riley wrote:
>
>> I just opened an org file which has some CRYPT tagged items. When I
>> org-reveal them (C-c C-r) they are properly decrypted and visible for a
>> second or two but something is triggering a buffer save which then
>> causes the "revealed item" to vanish back into gpg haze once more.
>>
>> What might be triggering this auto-save? I grepped my code for org-save
>> but nothing came up.
>>
>> Anyone else using this please confirm it does or doesn't happen to
>> you!
>
> Well, this doesn't happen to me, but that's because I use
> org-decrypt-entry (bound to C-c C-/ at my house) rather than org-reveal.
> That goes entry by entry, and once they're decrypted, they stay
> decrypted until I explicitly save the buffer. Maybe you could try that?
>
> And if the gods are listening: wouldn't it be nice if
> org-decrypt-entries (plural) only asked for your passphrase once for a
> whole buffer, when multiple individual entries were encrypted with the
> same key? Would that be possible?


It is. It shouldnt have to ask you at all in fact.

gpg-agent.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: org-reveal (gpg crypt) and auto saving
  2010-09-10 10:18   ` Richard Riley
@ 2010-09-10 10:26     ` Richard Riley
  2010-09-10 12:46       ` Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Riley @ 2010-09-10 10:26 UTC (permalink / raw)
  To: emacs-orgmode

Richard Riley <rileyrg@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> On Fri, Sep 10 2010, Richard Riley wrote:
>>
>>> I just opened an org file which has some CRYPT tagged items. When I
>>> org-reveal them (C-c C-r) they are properly decrypted and visible for a
>>> second or two but something is triggering a buffer save which then
>>> causes the "revealed item" to vanish back into gpg haze once more.
>>>
>>> What might be triggering this auto-save? I grepped my code for org-save
>>> but nothing came up.
>>>
>>> Anyone else using this please confirm it does or doesn't happen to
>>> you!
>>
>> Well, this doesn't happen to me, but that's because I use
>> org-decrypt-entry (bound to C-c C-/ at my house) rather than org-reveal.
>> That goes entry by entry, and once they're decrypted, they stay
>> decrypted until I explicitly save the buffer. Maybe you could try that?
>>
>> And if the gods are listening: wouldn't it be nice if
>> org-decrypt-entries (plural) only asked for your passphrase once for a
>> whole buffer, when multiple individual entries were encrypted with the
>> same key? Would that be possible?
>
> It is. It shouldnt have to ask you at all in fact.
>
> gpg-agent.
>

I forgot to add : org-crypt-key.

And my problem solved : it was some junk lying around where I had
experimented with "real-auto-save".

cheers

r.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: org-reveal (gpg crypt) and auto saving
  2010-09-10 10:26     ` Richard Riley
@ 2010-09-10 12:46       ` Eric Abrahamsen
  2010-09-10 13:48         ` Richard Riley
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2010-09-10 12:46 UTC (permalink / raw)
  To: emacs-orgmode

On Fri, Sep 10 2010, Richard Riley wrote:

> Richard Riley <rileyrg@gmail.com> writes:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>
>>> On Fri, Sep 10 2010, Richard Riley wrote:
>>>
>>>> I just opened an org file which has some CRYPT tagged items. When I
>>>> org-reveal them (C-c C-r) they are properly decrypted and visible for a
>>>> second or two but something is triggering a buffer save which then
>>>> causes the "revealed item" to vanish back into gpg haze once more.
>>>>
>>>> What might be triggering this auto-save? I grepped my code for org-save
>>>> but nothing came up.
>>>>
>>>> Anyone else using this please confirm it does or doesn't happen to
>>>> you!
>>>
>>> Well, this doesn't happen to me, but that's because I use
>>> org-decrypt-entry (bound to C-c C-/ at my house) rather than org-reveal.
>>> That goes entry by entry, and once they're decrypted, they stay
>>> decrypted until I explicitly save the buffer. Maybe you could try that?
>>>
>>> And if the gods are listening: wouldn't it be nice if
>>> org-decrypt-entries (plural) only asked for your passphrase once for a
>>> whole buffer, when multiple individual entries were encrypted with the
>>> same key? Would that be possible?
>>
>> It is. It shouldnt have to ask you at all in fact.
>>
>> gpg-agent.
>>
>
> I forgot to add : org-crypt-key.

Yeah, I've got this much set up, but something is borken with the agent
and I've never bothered fixing it (still get a minibuffer prompt). If
that would solve this problem, then that's motivation!

>
> And my problem solved : it was some junk lying around where I had
> experimented with "real-auto-save".
>
> cheers
>
> r.
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: org-reveal (gpg crypt) and auto saving
  2010-09-10 12:46       ` Eric Abrahamsen
@ 2010-09-10 13:48         ` Richard Riley
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Riley @ 2010-09-10 13:48 UTC (permalink / raw)
  To: emacs-orgmode

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> On Fri, Sep 10 2010, Richard Riley wrote:
>
>> Richard Riley <rileyrg@gmail.com> writes:
>>>
>>> It is. It shouldnt have to ask you at all in fact.
>>>
>>> gpg-agent.
>>>
>>
>> I forgot to add : org-crypt-key.
>
> Yeah, I've got this much set up, but something is borken with the agent
> and I've never bothered fixing it (still get a minibuffer prompt). If
> that would solve this problem, then that's motivation!
>

The following *might* help

http://www.emacswiki.org/emacs/keychain-environment.el

The emacs Keychain package correctly read the running agent "token" or
"cookie" and doesnt rely on env values.

Other things to consider are the contents of ~/.gnupg/gpg-agent.conf.

For me:-

,----
| pinentry-program /usr/bin/pinentry-gtk-2
| no-grab
| default-cache-ttl       3942000
| max-cache-ttl           3942000
`----

Now, an interesting thing .. I am pretty damn sure I had a line
"use-agent" in my gpg.conf. Its not there now. Instead is a comment from
seahorse. Gah. Debian gpg key handling remains a mystery ... There seems
about a gazillion packages or approaches to dealing with this.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-10 13:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-10  9:26 org-reveal (gpg crypt) and auto saving Richard Riley
2010-09-10  9:59 ` Eric Abrahamsen
2010-09-10 10:18   ` Richard Riley
2010-09-10 10:26     ` Richard Riley
2010-09-10 12:46       ` Eric Abrahamsen
2010-09-10 13:48         ` Richard Riley

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).