From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Boudreault Subject: Re: Lock CLOSED tag Date: Fri, 17 Jul 2009 11:39:50 -0400 Message-ID: <200907171139.51006.aboudreault@mapgears.com> References: <200907101024.33972.aboudreault@mapgears.com> <200907171116.37762.aboudreault@mapgears.com> <87tz1b72gw.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRpXb-0007ZG-Vq for emacs-orgmode@gnu.org; Fri, 17 Jul 2009 11:40:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRpXX-0007Xb-KG for emacs-orgmode@gnu.org; Fri, 17 Jul 2009 11:40:07 -0400 Received: from [199.232.76.173] (port=60417 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRpXX-0007XY-EN for emacs-orgmode@gnu.org; Fri, 17 Jul 2009 11:40:03 -0400 Received: from smtp161.iad.emailsrvr.com ([207.97.245.161]:56109) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRpXW-0000lt-KS for emacs-orgmode@gnu.org; Fri, 17 Jul 2009 11:40:03 -0400 In-Reply-To: <87tz1b72gw.fsf@bzg.ath.cx> Content-Disposition: inline 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: Bastien Cc: emacs-orgmode@gnu.org 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 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