From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Capture tries to encrypt for no reason Date: Mon, 24 Dec 2012 13:00:25 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnECJ-0007xd-Su for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 15:00:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TnECI-0003Xx-UG for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 15:00:27 -0500 Received: from mail-la0-f42.google.com ([209.85.215.42]:37758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnECI-0003Xq-M1 for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 15:00:26 -0500 Received: by mail-la0-f42.google.com with SMTP id s15so9018225lag.15 for ; Mon, 24 Dec 2012 12:00:25 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.