From: Bastien <bastienguerry@googlemail.com>
To: Alan Boudreault <aboudreault@mapgears.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Lock CLOSED tag
Date: Fri, 17 Jul 2009 01:45:41 +0200 [thread overview]
Message-ID: <87bpnk19ay.fsf@bzg.ath.cx> (raw)
In-Reply-To: <200907101024.33972.aboudreault@mapgears.com> (Alan Boudreault's message of "Fri, 10 Jul 2009 10:24:33 -0400")
Alan Boudreault <aboudreault@mapgears.com> writes:
> Is it possible to lock the CLOSED tag ?
Yes, try this:
--8<---------------cut here---------------start------------->8---
(add-hook 'org-blocker-hook 'my-blocker-function)
(defun my-blocker-function (change-plist)
"Prevent TODO changes if CLOSED."
(not (equal (plist-get change-plist :from) "CLOSED")))
--8<---------------cut here---------------end--------------->8---
Careful as it throws an error.
--
Bastien
next prev parent reply other threads:[~2009-07-16 23:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-10 14:24 Lock CLOSED tag Alan Boudreault
2009-07-10 17:36 ` Nicolas Goaziou
2009-07-10 18:00 ` Alan Boudreault
2009-07-16 23:45 ` Bastien [this message]
2009-07-17 12:54 ` Alan Boudreault
2009-07-17 14:27 ` Bastien
2009-07-17 15:16 ` Alan Boudreault
2009-07-17 15:29 ` Bastien
2009-07-17 15:39 ` Alan Boudreault
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bpnk19ay.fsf@bzg.ath.cx \
--to=bastienguerry@googlemail.com \
--cc=aboudreault@mapgears.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.