Merge branch 'maint'

This commit is contained in:
Bastien Guerry 2012-09-26 08:28:44 +02:00
commit 1ab3bfb119
1 changed files with 5 additions and 4 deletions

View File

@ -254,10 +254,11 @@ See `org-crypt-disable-auto-save'."
(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)))
(save-excursion (org-end-of-subtree t)) t))))
(defun org-crypt-use-before-save-magic ()
"Add a hook to automatically encrypt entries before a file is saved to disk."