emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43094: closed ([PATCH] org-crypt.el: Fix encrypt/decrypt in presence


From: GNU bug Tracking System
Subject: bug#43094: closed ([PATCH] org-crypt.el: Fix encrypt/decrypt in presence of arbitrary drawers)
Date: Sun, 06 Sep 2020 08:08:02 +0000

Your message dated Sun, 06 Sep 2020 10:07:32 +0200
with message-id <87363v1g6z.fsf@gnu.org>
and subject line Re: bug#43094: [PATCH] org-crypt.el: Fix encrypt/decrypt in 
presence of arbitrary drawers
has caused the debbugs.gnu.org bug report #43094,
regarding [PATCH] org-crypt.el: Fix encrypt/decrypt in presence of arbitrary 
drawers
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
43094: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43094
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [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

Attachment: 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


--- End Message ---
--- Begin Message --- Subject: Re: bug#43094: [PATCH] org-crypt.el: Fix encrypt/decrypt in presence of arbitrary drawers Date: Sun, 06 Sep 2020 10:07:32 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Hi Trevor,

thanks for the patch.  I applied it on Org master branch as 1170e39be,
the fix will be in 9.3.8 and 9.4.

Best,

-- 
 Bastien


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]