From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: org-set-tag-hook Date: Mon, 10 Sep 2007 19:43:43 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0921013939==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUx0Y-0001nT-M8 for emacs-orgmode@gnu.org; Tue, 11 Sep 2007 00:05:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUx0W-0001ku-UW for emacs-orgmode@gnu.org; Tue, 11 Sep 2007 00:05:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUx0W-0001kj-O5 for emacs-orgmode@gnu.org; Tue, 11 Sep 2007 00:05:48 -0400 Received: from main.gmane.org ([80.91.229.2] 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 1IUx0W-0003qK-2y for emacs-orgmode@gnu.org; Tue, 11 Sep 2007 00:05:48 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IUwFc-0006M1-O0 for emacs-orgmode@gnu.org; Tue, 11 Sep 2007 05:17:26 +0200 Received: from colossus.cvs.rochester.edu ([128.151.80.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 05:17:17 +0200 Received: from austin.frank by colossus.cvs.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 05:17:17 +0200 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 --===============0921013939== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Hello! I am wondering whether it would be possible to introduce a new hook into org-mode. This hook would be run after any tags are added to an entry. The main use would be to check for the presence of some tag among the entry's tags, and execute some function in response to it. I suggest this because I would like to maintain a list of tags that will cause an entry to be excluded from export. I would like to do something like (setq excluded-tags '(home private bills)) (add-hook 'org-set-tag-hook 'excluded-tags '(org-set-property "PRIVATE" t)) This would automatically set the PRIVATE property of the headline to t whenever one of the members of excluded-tags was added to a headline. From=20there I think I could wrap the export functions to exclude all entries with a value of t for that property. I hope that, in general, the strategy of setting properties in response to the presence of certain tags will be useful. Do other folks think this would be an interesting addition? Am I overlooking an easy way to accomplish this without adding the hook to org? Thanks, /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFG5daylHMl2/XbR4ERAt4pAJ9DZfcf8vcSSzDjUFrP7/0sB1AT4gCfcdLy //voQLQhXScVJNTBCIuJuAo= =scZO -----END PGP SIGNATURE----- --=-=-=-- --===============0921013939== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0921013939==--