[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Capture tries to encrypt for no reason
From: |
Bastien |
Subject: |
Re: [O] Capture tries to encrypt for no reason |
Date: |
Tue, 25 Dec 2012 03:29:44 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Hi Samuel,
Samuel Wales <address@hidden> 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