mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-22 07:09:47 +00:00
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.
This commit is contained in:
parent
1b4e396b6b
commit
6671e80453
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user