emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Capture tries to encrypt for no reason


From: Samuel Wales
Subject: [O] Capture tries to encrypt for no reason
Date: Mon, 24 Dec 2012 13:00:25 -0700

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.

That should also speed up capture.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]