From 6671e80453590ec82ec18c1343ce4829f523af2d Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 25 Dec 2012 03:29:17 +0100 Subject: [PATCH] org-crypt.el (org-at-encrypted-entry-p): Fix search boundary * org-crypt.el (org-at-encrypted-entry-p): Fix search boundary. Thanks to Samuel Wales for reporting this bug. --- lisp/org-crypt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el index a187d2fac..00c2d8c57 100644 --- a/lisp/org-crypt.el +++ b/lisp/org-crypt.el @@ -258,7 +258,7 @@ See `org-crypt-disable-auto-save'." (save-excursion (org-back-to-heading t) (search-forward "-----BEGIN PGP MESSAGE-----" - (save-excursion (org-end-of-subtree t)) t)))) + (save-excursion (outline-next-heading)) t)))) (defun org-crypt-use-before-save-magic () "Add a hook to automatically encrypt entries before a file is saved to disk." -- 2.11.4.GIT