From: Carsten Dominik <dominik@science.uva.nl>
To: Austin Frank <austin.frank@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-set-tag-hook
Date: Thu, 13 Sep 2007 08:32:36 +0200 [thread overview]
Message-ID: <169e13d372f7da07e56b64ca000366e6@science.uva.nl> (raw)
In-Reply-To: <m04pi2t7bk.fsf@gmail.com>
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
prev parent reply other threads:[~2007-09-13 6:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-10 23:43 org-set-tag-hook Austin Frank
2007-09-13 6:32 ` Carsten Dominik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=169e13d372f7da07e56b64ca000366e6@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=austin.frank@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).