From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-crypt and PROPERTIES location Date: Fri, 20 Mar 2009 14:23:05 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lkegz-00015x-NS for emacs-orgmode@gnu.org; Fri, 20 Mar 2009 09:23:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lkegu-0000xx-Ab for emacs-orgmode@gnu.org; Fri, 20 Mar 2009 09:23:20 -0400 Received: from [199.232.76.173] (port=43031 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lkegu-0000xd-4f for emacs-orgmode@gnu.org; Fri, 20 Mar 2009 09:23:16 -0400 Received: from mail-fx0-f166.google.com ([209.85.220.166]:50521) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lkegt-00080P-Ok for emacs-orgmode@gnu.org; Fri, 20 Mar 2009 09:23:16 -0400 Received: by fxm10 with SMTP id 10so838246fxm.42 for ; Fri, 20 Mar 2009 06:23:12 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Jones Cc: John Wiegley , emacs-orgmode@gnu.org Hi Peter, we don't have a good function for this. Also, it is not so much about extracting the contents, more about finding the boundaries. In some ways I think it would actually be better to use a tag for encryption instead of a property, because this would allow to encrypt everything except the headline. What about we change this to a tag crypt_KEY? Hmm, I am not sure if encryption keys would make valid tags..... I'd very much like to see this improved and stabilized, so that we can include this with Org, this would be valuable to have. I am sure John would not mind if you did the final steps with it. Am I right, John? - Carsten On Mar 20, 2009, at 1:29 AM, Peter Jones wrote: > I've started playing with org-crypt, which is very nice. > > Unfortunately the org-apply-to-entry-contents function assumes that > the > PROPERTIES drawer is at the bottom of the heading's contents. There > might be a variable in org mode to control this, but all my entries > have > the PROPERTIES drawer at the top, with the content underneath. > > Of course, this means that org-crypt doesn't actually encrypt anything > for me. > > I'm posting this to the org-mode mailing list to see if there is a > better way to get to the contents of a heading, excluding any drawers. > I'm sure there is something in the export system we could reuse. I > say > "we" because I'm more than willing to submit patches. > > One last note, the comments in the org-crypt file mention using an > after-save-hook to encrypt the appropriate headings. Shouldn't that > be > a before-save-hook? > > Thanks to all. > > -- > Peter Jones, http://pmade.com > pmade inc. Louisville, CO US > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode