[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43094: [PATCH] org-crypt.el: Fix encrypt/decrypt in presence of arbi
From: |
Trevor Murphy |
Subject: |
bug#43094: [PATCH] org-crypt.el: Fix encrypt/decrypt in presence of arbitrary drawers |
Date: |
Fri, 28 Aug 2020 14:35:09 -0700 |
User-agent: |
mu4e 1.4.6; emacs 26.3 |
Hey, all.
At
https://ag91.github.io/blog/2020/08/28/org-crypt-and-logbook-how-they-can-work-together-for-a-secure-agenda/
a user described a problem where they:
1. encrypted an Org headline's contents
2. rescheduled the headline information, triggering a log note,
triggering a new LOGBOOK drawer
3. attempted to decrypt the headline's contents with no success
(`org-decrypt-entry' left the encrypted contents unchanged)
In my follow up testing, I found that if a user calls
`org-encrypt-entry' on a headline with a logbook, the logbook is
encrypted (and hence any further logging activity will create a
new logbook, triggering the bug above).
Seems the problem is that encrypt / decrypt both use
`org-end-of-meta-data' to skip to the headline contents, but they
do not pass the `full' argument to skip *all* meta data.
Tinychange patch attached.
--
Trevor Murphy
0001-org-crypt.el-Fix-encrypt-decrypt-in-presence-of-arbi.patch
Description: 0001-org-crypt.el-Fix-encrypt-decrypt-in-presence-of-arbi.patch
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#43094: [PATCH] org-crypt.el: Fix encrypt/decrypt in presence of arbitrary drawers,
Trevor Murphy <=