From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Lock CLOSED tag Date: Fri, 17 Jul 2009 17:29:03 +0200 Message-ID: <87tz1b72gw.fsf@bzg.ath.cx> References: <200907101024.33972.aboudreault@mapgears.com> <200907170854.03027.aboudreault@mapgears.com> <87eisfbd18.fsf@bzg.ath.cx> <200907171116.37762.aboudreault@mapgears.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRpNA-0000w9-8l for emacs-orgmode@gnu.org; Fri, 17 Jul 2009 11:29:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRpN5-0000p9-Dv for emacs-orgmode@gnu.org; Fri, 17 Jul 2009 11:29:19 -0400 Received: from [199.232.76.173] (port=60058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRpN5-0000ow-AA for emacs-orgmode@gnu.org; Fri, 17 Jul 2009 11:29:15 -0400 Received: from rv-out-0708.google.com ([209.85.198.241]:62503) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRpN4-0003K7-T7 for emacs-orgmode@gnu.org; Fri, 17 Jul 2009 11:29:15 -0400 Received: by rv-out-0708.google.com with SMTP id f25so339443rvb.6 for ; Fri, 17 Jul 2009 08:29:14 -0700 (PDT) In-Reply-To: <200907171116.37762.aboudreault@mapgears.com> (Alan Boudreault's message of "Fri, 17 Jul 2009 11:16:37 -0400") 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: Alan Boudreault Cc: emacs-orgmode@gnu.org 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 :) -- Bastien