emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-set-tag-hook


From: Carsten Dominik
Subject: Re: [Orgmode] org-set-tag-hook
Date: Thu, 13 Sep 2007 08:32:36 +0200


On Sep 11, 2007, at 1:43, Austin Frank wrote:

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.

The next version will have `org-after-tags-change-hook'. It will be called whenever the tags in an entry change, with the cursor *somewhere* on that line.

To get a list of the tags in the current line, use (only in 5.09, right now
this does not work correctly)

   (org-get-tags)

To get the list including inherited tags, use

  (org-get-tags-at (point))

- Carsten



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477





reply via email to

[Prev in Thread] Current Thread [Next in Thread]