From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Capture tries to encrypt for no reason Date: Tue, 25 Dec 2012 03:29:44 +0100 Message-ID: <877go6sw2v.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnKH8-0004mN-Ss for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 21:29:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TnKH3-0003wr-5H for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 21:29:50 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:40928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnKH2-0003wn-VO for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 21:29:45 -0500 Received: by mail-wi0-f175.google.com with SMTP id hm11so6668790wib.14 for ; Mon, 24 Dec 2012 18:29:44 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Mon, 24 Dec 2012 13:00:25 -0700") 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: Samuel Wales Cc: emacs-orgmode@gnu.org Hi Samuel, Samuel Wales writes: > 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. Indeed. Fixed, thanks for catching this. -- Bastien