Merge branch 'maint'
This commit is contained in:
commit
1ab3bfb119
|
@ -254,10 +254,11 @@ See `org-crypt-disable-auto-save'."
|
||||||
|
|
||||||
(defun org-at-encrypted-entry-p ()
|
(defun org-at-encrypted-entry-p ()
|
||||||
"Is the current entry encrypted?"
|
"Is the current entry encrypted?"
|
||||||
|
(unless (org-before-first-heading-p)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(org-back-to-heading t)
|
(org-back-to-heading t)
|
||||||
(search-forward "-----BEGIN PGP MESSAGE-----"
|
(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 ()
|
(defun org-crypt-use-before-save-magic ()
|
||||||
"Add a hook to automatically encrypt entries before a file is saved to disk."
|
"Add a hook to automatically encrypt entries before a file is saved to disk."
|
||||||
|
|
Loading…
Reference in New Issue