From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: alter all subtrees containing specific tag Date: Sun, 08 Mar 2009 04:31:55 +0000 Message-ID: <877i303a9w.fsf@it.com> 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 1LgIIh-0007A1-Lj for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 08:40:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgIIe-00077l-6J for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 08:40:15 -0400 Received: from [199.232.76.173] (port=49075 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgIId-00077W-VP for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 08:40:11 -0400 Received: from main.gmane.org ([80.91.229.2]:49320 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 1LgIIc-0006sl-OW for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 08:40:11 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LgIIU-0007Ir-U0 for emacs-orgmode@gnu.org; Sun, 08 Mar 2009 12:40: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 12:40: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 12:40: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 Hi, 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? -- aleblanc