emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Lock CLOSED tag


From: Alan Boudreault
Subject: Re: [Orgmode] Lock CLOSED tag
Date: Fri, 17 Jul 2009 08:54:02 -0400
User-agent: KMail/1.11.2 (Linux/2.6.27-14-generic; KDE/4.2.2; i686; ; )

Hi Bastien, 

I've take a look at the code you sugested to me. It didn't work. After further 
documentation reading... it's definitively normal. "CLOSED" is not a todo tag 
string... but a property (logdone). At this point, I have two choice:

- If a similar hook exist for the property update when a tag has changed

- Make a string list with all my "closed/done/fixed ... tags" and block those 
changes. This way, I'll force a manual tag change when the current tag is a 
closed one. 

But, I would prefer the first idea because I normally  switch my todo tag with 
shift+(left|right)... so it pass through my 3 different todo sequences.

Thanks
Alan
  
On July 16, 2009 07:45:41 pm Bastien wrote:
> Alan Boudreault <address@hidden> 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.

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]