From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: alter all subtrees containing specific tag Date: Sun, 08 Mar 2009 18:01:50 +0000 Message-ID: <87eix7opv5.fsf@it.com> References: <877i303a9w.fsf@it.com> <49B3CB5C.6020108@manor-farm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgNN7-0005xS-QX for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 14:05:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgNN7-0005x3-At for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 14:05:09 -0400 Received: from [199.232.76.173] (port=60528 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgNN7-0005ww-4w for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 14:05:09 -0400 Received: from main.gmane.org ([80.91.229.2]:54550 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LgNN6-0002yy-Gp for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 14:05:08 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LgNN0-0001WM-P2 for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 18:05:02 +0000 Received: from 87-194-46-7.bethere.co.uk ([87.194.46.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Mar 2009 18:05:02 +0000 Received: from news by 87-194-46-7.bethere.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Mar 2009 18:05:02 +0000 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: emacs-orgmode@gnu.org Ian Barton writes: >> I use pgg to encrypt some org subtrees (e.g. the ones containing >> passwords). At the moment I have to encrypt/decrypt them one at a >> time by selecting the appropriate region and running >> pgg-encrypt-region/pgg-decrypt-region. I want to make a >> function that will automatically encrypt/decrypt all >> subtrees (in the current buffer) whose headings contain an :ENCRYPT: tag. >> I tried using org-map-entries, but it seems to restore the buffer to >> its original state after returning. >> Is there a quick way to get the start and end points of a subtree, or >> place region around it? and a quick way to jump to the next heading >> with a given tag? >> > Not really an answer, but I use epa and encrypt the whole file, which > I find much fiddly. You can get epa to play nicely with org mode by > putting something like: > > -*- mode:org; epa-file-encrypt-to: ("me@mmyemail.com") -*- > > at the top of your encrypted file. > I can encrypt the whole buffer with pgg-encrypt, but I want to be able to just encrypt a selection of subtrees. -- aleblanc