[Top][All Lists]

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

Re: [Orgmode] Lock CLOSED tag

From: Bastien
Subject: Re: [Orgmode] Lock CLOSED tag
Date: Fri, 17 Jul 2009 01:45:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

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.


reply via email to

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