Fix bug in mapping entries
commit2339c5afa7e814e2735d80769d87c1a3fd6d4949
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 14 Apr 2010 07:42:50 +0000 (14 09:42 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 14 Apr 2010 07:42:50 +0000 (14 09:42 +0200)
tree94de745edca033762d7b797242c3abc6762a9c1a
parent9cfebf084266267d0c78bbd9097b16c0cd8fbae3
Fix bug in mapping entries

Patch by Peter Jones, following a bug report by Xiao-Jong Jin, who wrote:

> If you have the follow org file
>
> * test crypt       :crypt:
> ** subheading 1
>   text 1
> ** subheading 2
>   text 2
>
> with setup as
>
> (require 'org-crypt)
> (setq org-tags-exclude-from-inheritance '("crypt"))
> (setq org-crypt-key "CBC0714E")              ; my key
>
> On calling org-encrypt-entry on the first head line, only
> subheading 1 get encrypted, subheading 2 remains plain text.
> But, if you add an empty line or some text under the first
> heading, both subheading 1 and 2 are encrypted.
lisp/ChangeLog
lisp/org-crypt.el