Hi Samuel,

Samuel Wales <samolog...@gmail.com> writes:

> Capture tries to encrypt for no reason.
>
> (defun org-at-encrypted-entry-p ()
>   "Is the current entry encrypted?"
>   (unless (org-before-first-heading-p)
>     (save-excursion
>       (org-back-to-heading t)
>       (search-forward "-----BEGIN PGP MESSAGE-----"
>                     (save-excursion (org-end-of-subtree t)) t))))
>
> My guess is that going to the end of the subtree is wrong.  It should
> be to the end of the entry.

Indeed.  Fixed, thanks for catching this.

-- 
 Bastien

Reply via email to