A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://lists.gnu.org/archive/html/emacs-orgmode/2009-07/msg00513.html below:

Re: [Orgmode] Lock CLOSED tag

[Top][All Lists] [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] 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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4