That will not work... because I have all those todo keyword that also means "fixed":
Done, Delegated, deferred, wont fix, fixed, canceled. That's why I said that I should pass through a list that contain all keywords. But... that wont work properly if I want to set my item to the "BUG" keyword passing with shift+arrow because I have 3 different sequences defined. Anyway.. will try to find the proper solution for that. Alan On July 17, 2009 11:29:03 am Bastien wrote: > Alan Boudreault <aboudrea...@mapgears.com> writes: > > When I said "todo tag"... I meant "todo keyword". Here's a example of > > what I'm trying to achieve: > > > > *** FIXED a bug > > CLOSED: [2009-07-08 Wed 16:49] > > > > By mistake, I can set the item to "Reopened" by example. And If I switch > > it back to the proper todo keywork "FIXED". The closed property is > > overwrited. > > Then try this instead: > > --8<---------------cut here---------------start------------->8--- > (add-hook 'org-blocker-hook 'my-blocker-function) > > (defun my-blocker-function (change-plist) > "Prevent TODO changes if the TODO keyword is FIXED." > (not (equal (plist-get change-plist :from) "FIXED"))) > --8<---------------cut here---------------end--------------->8--- > > > I'm trying to block the update of the CLOSED Property IF it already > > exist. > > If the CLOSED property is only set the first time you switch to FIXED, > and if the FIXED todo keyword prevents any todo change, then the blocked > FIXED todo keyword should prevent the CLOSED property to change. > > > Thanks For your help, and sorry for my english: I'm a french canadian > > ;) > > Ah! Je vous en prie :) -- Alan Boudreault Mapgears http://www.mapgears.com _______________________________________________ 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