From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Attaching hook to subtree Date: Wed, 25 Jun 2014 15:49:29 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e46d29a7f3404fca959f6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WznaC-0004XY-3E for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 09:49:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WznaB-0000Sy-8S for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 09:49:52 -0400 Received: from mail-oa0-x22c.google.com ([2607:f8b0:4003:c02::22c]:41147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WznaB-0000Sn-3N for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 09:49:51 -0400 Received: by mail-oa0-f44.google.com with SMTP id i7so2138769oag.31 for ; Wed, 25 Jun 2014 06:49:49 -0700 (PDT) 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" --047d7b2e46d29a7f3404fca959f6 Content-Type: text/plain; charset=UTF-8 Hi list, I wonder if someone has already tried the following. It could be useful to trigger some action whenever a subtree is modified. This would require to attach a hook to the subtree, which can be done using a property drawer. The real problem is how to (efficiently) track the fact that some subtree has been modified? Maybe by keeping an md5 sum and checking if it has changed when writing the file. Any other idea? Thanks for your inputs, -- Fabrice --047d7b2e46d29a7f3404fca959f6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi list,

I wonder if someone has alread= y tried the following.
It could be useful to trigger some action = whenever
a subtree is modified.
This would require to a= ttach a hook to the subtree,=C2=A0
which can be done using a property drawer.
The real problem = is how to (efficiently) track
the fact that some subtree has been= modified?
Maybe by keeping an md5 sum and checking=C2=A0
if it has changed when writing the file.=C2=A0
Any other idea?

Thanks for your inputs,

--
Fabrice
--047d7b2e46d29a7f3404fca959f6--